Suppose i want to add two hexadecimal numbers like AB and 1F. How we add it ?
so first i need to change it into decimal and then add it ? or it can directly add? Please give me some hints.
:|
Do you want to assign these two hexadecimal numbers to two different inputs of FPGA?
If this is the case, then follow this:
For example you have two inputs. A and B. Both are 8 bits wide. You want to assign AB to A-input and 1F to B-input. Then use following code:
A=8'hAB;
B=8'h1F;