CJT
New Contributor
3 years agooutput or inout port "outA" must be connected to a structural net expression
//block1 module block1 (clk, inA, outA, outB, outC); input clk, inA; output outA, outB, outC; reg outA, outB, outC; always @ (posedge clk) begin outA = inA; outB = outA; outC = outB; end endmodule
//block2 module block2 (clk, inA, outA, outB, outC); input clk, inA; output outA, outB, outC; reg outA, outB, outC; always @ (posedge clk) begin outC = outB; outA = inA; outB = outA; end endmodule
//block 3 module block3 (clk, inA, outA, outB, outC); input clk, inA; output outA, outB, outC; reg outA, outB, outC; always @ (posedge clk) begin outB = outA; outA = inA; outC = outB; end endmodule
Code the aboveDUT blocks using 3 different ordering:
module ordering1 (clk, inA, outA, outB, outC); input clk, inA; output outA, outB, outC; reg outA, outB, outC; block1 block1_inst (.clk(clk), .inA(inA), .outA(outA), .outB(outB), .outC(outC)); block2 block2_inst (.clk(clk), .inA(inA), .outA(outA), .outB(outB), .outC(outC)); block3 block3_inst (.clk(clk), .inA(inA), .outA(outA), .outB(outB), .outC(outC)); endmodule
Error (10663): Verilog HDL Port Connection error at ordering1.v(6): output or inout port "outA" must be connected to a structural net expression
Error (10663): Verilog HDL Port Connection error at ordering1.v(6): output or inout port "outB" must be connected to a structural net expression
Error (10663): Verilog HDL Port Connection error at ordering1.v(6): output or inout port "outC" must be connected to a structural net expression
How to solve the above error?