Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top