Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHello,
Instance of 'SUB' module needs to be outside initial block. Also variable c in 'TEST1' module needs to be declared as 'wire' since it is output of 'SUB' module. Something like, module TEST1; reg [31:0] a,b; wire [31:0] c; initial begin a = 12; b = 9; end SUB s(a,b,c); endmodule Cheers, Bhaumik