The following code synthesizes and simulates correctly, as far as I can tell, but XST still gives the following warning : value(s) does not match array range, simulation mismatch. Is there something I am missing?
Tool Used: Xilinx ISE Project Navigator (Synthesizer: XST) FPGA: SPARTAN 3E
module error_example( input [47:0] data, input [2:0] sel, output [5:0] data_out ); assign data_out = data[sel*6 +: 6]; endmodule
WARNING:Xst:790 - "error_example.v" line 8: Index value(s) does not match array range, simulation mismatch.
As I said, this works, and I did the math:
sel can have values ββfrom 0 to 7,
if sel is 0, then data_out = data[5:0] ...
if sel is 7, then data_out = data[47:42]
Should I do something different here? Is this a bug in XST?
source share