akira12345
Newbie level 2
Hi,
I am using modelsim. I would like to hook up non input/out signal to testbench from design unit.
Example
Design unit:
module design_unit( out1, out2, in1, in2);
input in1, in2;
output reg out1, out2;
.......
reg [5:0] int_reg;
......
endmodule
Testbench unit:
module design_unit_tb();
reg in1, in2;
wire out1, out2;
........
//my problem is how do i make it as below
always @(int_reg) <--- int_reg is not input/output of design unit
.........
endmodule
I would like to capture the int_reg signal and print to text file, but i dont know how to hook out int_reg (reg type) to testbench.
Thanks for your help.
I am using modelsim. I would like to hook up non input/out signal to testbench from design unit.
Example
Design unit:
module design_unit( out1, out2, in1, in2);
input in1, in2;
output reg out1, out2;
.......
reg [5:0] int_reg;
......
endmodule
Testbench unit:
module design_unit_tb();
reg in1, in2;
wire out1, out2;
........
//my problem is how do i make it as below
always @(int_reg) <--- int_reg is not input/output of design unit
.........
endmodule
I would like to capture the int_reg signal and print to text file, but i dont know how to hook out int_reg (reg type) to testbench.
Thanks for your help.