bianchi77
Advanced Member level 4
- Joined
- Jun 11, 2009
- Messages
- 1,313
- Helped
- 21
- Reputation
- 44
- Reaction score
- 20
- Trophy points
- 1,318
- Location
- California
- Activity points
- 9,442
Guys,
I have a 32 bits port, how can I define it on testbench ? I'm a learner on testing so, I need a help if you guys don't mind.
the code :
the testbench :
and I got error on modelsim :
Any helps or attention will be appreciated,
Thanks
I have a 32 bits port, how can I define it on testbench ? I'm a learner on testing so, I need a help if you guys don't mind.
the code :
Code:
module pci(reset,clk,frame,irdy,trdy,devsel,idsel,ad,cbe,par,stop,inta,led_out);
input reset;
input clk;
input frame;
input irdy;
output trdy;
output devsel;
input idsel;
inout [31:0] ad;
input [3:0] cbe;
inout par;
output stop;
output inta;
output [3:0] led_out;
.
.
.
the testbench :
Code:
module pci_testbench;
supply0 frame;
reg [31:0] t_ad;
reg [3:0] t_cbe;
supply0 t_irdy;
supply0 t_reset;
pci my_pci(frame, .ad(t_ad), cbe(t_cbe), irdy(t_irdy), reset(t_reset),clk);
initial
begin
$monitor(frame,t_ad,t_cbe,t_irdy,t_reset);
end
endmodule
and I got error on modelsim :
Code:
# ** Error: (vsim-3043) PCI32V3/pci_testbench.v(12): Unresolved reference to 'ad'.
# Region: /pci_testbench
# ** Error: (vsim-3043) PCI32V3/pci_testbench.v(12): Unresolved reference to 'cbe'.
# Region: /pci_testbench
# ** Error: (vsim-3043) PCI32V3/pci_testbench.v(12): Unresolved reference to 'irdy'.
# Region: /pci_testbench
# ** Error: (vsim-3043) PCI32V3/pci_testbench.v(12): Unresolved reference to 'reset'.
# Region: /pci_testbench
# ** Warning: (vsim-3017) PCI32V3/pci_testbench.v(12): [TFMPC] - Too few port connections. Expected 13, found 6.
# Region: /pci_testbench/my_pci
# ** Error: (vsim-3053) PCI32V3/pci_testbench.v(12): Illegal output or inout port connection (port 'trdy').
# Region: /pci_testbench/my_pci
Any helps or attention will be appreciated,
Thanks