D
Daniel
Guest
Hi,
A question from a true newbie on Verilog 2001
- I need to initialize a variable (length 128 bits) with 16 bytes in
hexadecimal form to which I need to add a value. Can you pls
correct/confirm the following code:
data = 128'h000102030405060708090A0B0C0D0E0F
data = data + 2'b11 //Add binary (decimal value 3) to data
data = data + 'h0A //Add hexadecimal (decimal value 10) to data
Hope to read you soon,
Dan
A question from a true newbie on Verilog 2001
- I need to initialize a variable (length 128 bits) with 16 bytes in
hexadecimal form to which I need to add a value. Can you pls
correct/confirm the following code:
data = 128'h000102030405060708090A0B0C0D0E0F
data = data + 2'b11 //Add binary (decimal value 3) to data
data = data + 'h0A //Add hexadecimal (decimal value 10) to data
Hope to read you soon,
Dan