This is my first experience coding in Verilog and also my first StackExchange query! Please excuse me in advance for any etiquette I fail to employ in this post.
I trudged through some similar questions already posted here, but I couldn't make out how to apply the solutions to my own code...
I am unsure as to why I am receiving the above stated error when attempting to run a simulation, and am also unsure how to fix it. Please advise?:)
I've attached my source code below, along with the testbench module and the errors I received when trying to run the simulation.
Any feedback is much appreciated!
module test1();
reg O, P, W;
wire LowRate, StandardRate, PeakRate;
outputs LowRate,StandardRate,PeakRate
CircuitStructure
testboi(LowRate,StandardRate,PeakRate,O,P,W);
initial
begin
O=0; P=0; W=0;
#10 O=0; P=0; W=0;
#10 O=0; P=0; W=1;
#10 O=0; P=1; W=0;
#10 O=0; P=1; W=1;
#10 O=1; P=0; W=0;
#10 O=1; P=0; W=1;
#10 O=1; P=1; W=0;
#10 O=1; P=1; W=1;
#10
$finish();
end
endmodule
module CircuitStructure(O, P, W, LowRate,
StandardRate, PeakRate);
input O, P, W;
output LowRate, StandardRate, PeakRate;
not
UA1(NotP,P),
UA2(NotO,O),
UA3(NotW,W);
nand
UB1(Nand1,NotP,NotO),
UB2(Nand2,NotW,P),
UB3(PeakRate,Nand1,Nand2);
and
UC1(StandardRate,P,W);
buf
UD1(LowRate,O);
endmodule
Simulation Errors:
Loading work.test1
# Loading work.CircuitStructure
# ** Error (suppressible): (vsim-3053)
C:/Modeltech_pe_edu_10.4a/ECE171_Project1/TestBench - Copy.v(10): Illegal
output or inout port connection for port 'LowRate'.
# Time: 0 ns Iteration: 0 Instance: /test1/testboi File:
C:/Modeltech_pe_edu_10.4a/ECE171_Project1/TestBench - Copy.v
# ** Error (suppressible): (vsim-3053)
C:/Modeltech_pe_edu_10.4a/ECE171_Project1/TestBench - Copy.v(10): Illegal
output or inout port connection for port 'StandardRate'.
# Time: 0 ns Iteration: 0 Instance: /test1/testboi File:
C:/Modeltech_pe_edu_10.4a/ECE171_Project1/TestBench - Copy.v
# ** Error (suppressible): (vsim-3053)
C:/Modeltech_pe_edu_10.4a/ECE171_Project1/TestBench - Copy.v(10): Illegal
output or inout port connection for port 'PeakRate'.
# Time: 0 ns Iteration: 0 Instance: /test1/testboi File:
C:/Modeltech_pe_edu_10.4a/ECE171_Project1/TestBench - Copy.v
# Error loading design