Altera_Forum
Honored Contributor
18 years agoComponent Editor calculates wrong address size from verilog file
I have components from 6.x that were working correctly but when upgraded to new 7.2 component do not.
Snippet: I define `define uart_addr_width 3 and use to set the address width in the top level input [`uart_addr_width-1:0] address; instead of the expected effective [2:0] and size of 3, the SOPC Component signal tab lists a size of 4. Changing to [`uart_addr_width + 1:0] or [`uart_addr_width:0] also always yields 4. If I change the define, SOPC always reports a value 1 more than the define. Upper/Lower case does not seem to make a difference. The same thing happens on the Data Bus as well. Hopefully someone has seen and solved this. Thanks, Stefan