chibijia
Member level 2
recently i write a code which embrace two subside modules,such as
module1 module segbcd(data,clk,rst,seg_out) where data is 8bits input ;clk,rst are 1bit input,seg_out is 8bits output,and
module2 module counter(s,sc,sn,rst,clk,data_sn,data)
where s,sc,sn,rst,clk are 1bit input ,data_sn is 8bits input,data is 8 bits output;
and the clk and rst can be the common node.and the output of the module2-data is the input of module1-data.
can anybody tell me how to write a correct testbench for this design!
help!!!
module1 module segbcd(data,clk,rst,seg_out) where data is 8bits input ;clk,rst are 1bit input,seg_out is 8bits output,and
module2 module counter(s,sc,sn,rst,clk,data_sn,data)
where s,sc,sn,rst,clk are 1bit input ,data_sn is 8bits input,data is 8 bits output;
and the clk and rst can be the common node.and the output of the module2-data is the input of module1-data.
can anybody tell me how to write a correct testbench for this design!
help!!!