can someone please help me write a Verilog code for converting a given value in decimal to hexadecimal. My code computes a value 'T' after some math calc. This value T must further be used in the code in hex format. How can i do that?
how many bits of decimal number u are getting? and from which kind of interface...? If you are getting decimal from software its better to convert it in software and take it on FPGA in hex form only....
I am using $readmemh to read hex values from a text file. Alot of these hex values are negative i.e. in the format FFFFFFF2. How do i read these values? Verilog treats them as positive!
Please help me
Thanks