Open GoogleCodeExporter opened 9 years ago
After much debugging I think I've found the issue.
Writing 4'hA in verilog means:
a number with 4 *binary* digits, and whose hexadecimal value is A
Instead, Odin assumes that there will be 4 *hexadecimal* digits, so it
interprets the value as 0000000000001010 instead of 1010.
So in the given example:
assign c_s = { (a == 8'hAA) ? 8'hAB : a,
(b == 16'hAAAA) ?
16'hAAAB :
b } ;
Odin concatenates a 96b value, but then only keeps the 24 LSBs since c_s only
has 24 bits.
The 16 LSBs are correct, but the 8 MSBs are 0.
Original comment by edin.kad...@gmail.com
on 2 Jun 2015 at 5:13
Original issue reported on code.google.com by
edin.kad...@gmail.com
on 31 May 2015 at 6:03Attachments: