Forum Discussion
Altera_Forum
Honored Contributor
11 years agoLookUp Tables
Hello, I want to implement sine and cosine signals in vhdl to check a part of my code but i don't know how to initialize these sin and cos signals? please tell me what is the way to do it? i h...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- I don't about your tools habits but you can convert negative numbers to positive (bit equivalent): e.g. for n bits negative values (signed) data = data + 2^n --- Quote End --- Thank's for your answer, but I did it and I got the following picture it Questa. I can't submit it like a signed number. In radix I use decimal, but it also ansigned. How can i transform it into unsigned? http://s7.hostingkartinok.com/uploads/images/2014/11/504de2f5c58eae37f09eb5c10191f761.png (http://hostingkartinok.com/show-image.php?id=504de2f5c58eae37f09eb5c10191f761)