Forum Discussion
pnp
New Contributor
5 years agoBus index reversal when SystemVerilog module instantiates a BDF in Quartus Prime Pro 21.2
I have a legacy BDF that I need to use in a current design. Using Quartus Prime Pro v20.4 or v21.2, I see the bus indexes reversed on the port connections when the BDF diagram is instantiated from wi...
- 5 years ago
Yeah, I'd just convert to HDL and use that if you have more complex designs causing this issue. Just save yourself the time and effort trying to fix the schematics.
sstrell
Super Contributor
5 years agoWow, that is really weird! On the off off chance this is SystemVerilog related, can you try a plain .v file instead of .sv?
This is why I don't use schematics anymore!
pnp
New Contributor
5 years agoThanks. Yeah, I inherited these old schematics and we have been steadily converting the simpler ones to SystemVerilog. The remaining one is big and thoroughly tested, so it hasn't been migrated yet...
I gave your suggestion a try and converted the module to straight Verilog (top.v):
module top ( input wire clk, input wire [3:0] x, output wire [7:0] y ); wire [7:0] x_in; assign x_in[7:4] = x; assign x_in[3:0] = 4'b0; bdftest bdf_i ( .clk(clk), .x_in(x_in[7:0]), .y_out(y) ); endmodule
The results were the same:
This is indeed strange!