How to write the test bench for the following Bidirectional buffer code

Status
Not open for further replies.

vijaymarine

Newbie level 2
Joined
Feb 6, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,290
module bidir(dio,clk,rst);
input clk,rst;
inout [15:0]dio;
wire [15:0]dout;
wire oe;
reg [15:0]inreg;
assign dio=oe? dout:16'hzzzz;
always @(posedge clk)
if(rst)
inreg<=16'h0000;
else
inreg<=dio;
endmodule
 

As shown, the module is functionless and doesn't generate any output. In so far, there's no need or usage for a test bench.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…