nishant22
New Member
Offline
Posts: 8
|
hi, I am writing a testbench, with stimulus in VA in which I have few buses of width around 69 bits, so I want user to specify the decimal value and my resepective data paths get ON or off basically get 1 or 0. So I want to carry out Decimal to binary conversion in VA. So if u specify decimal value of 4 and my bus is 40 bits, i shud get 0...0100 . I want to write this model in pure verilog-A not ams for some restrictions. Can anyone please help or send me a code, its re\ally urgent.It would be really useful. I have seen many C/C++ codes, but VA restrictions don't allow me to use those functions.
Thanks , NIshant
|