TCL tutorial or example to write testbench for VHDL code

Status
Not open for further replies.

cwjcwjcwj

Full Member level 5
Joined
Nov 8, 2004
Messages
273
Helped
17
Reputation
34
Reaction score
12
Trophy points
1,298
Activity points
1,714
testbench tcl

I am beginner of using TCL to write testbench for my VHDL code. Anyone have a good tutorial or example that i can start with? thank you very much.
 

Re: fpga testbench tcl

module count (clk, rst, enable, cnt);

input clk, rst, enable;
output [3:0] cnt;

reg [3:0] cnt;

always @(posedge clk or posedge rst) // async active high reset
begin
if(rst)
cnt <= 0;
else if(enable)
cnt <= cnt + 1;
end

endmodule

============================================================

do you know how to use this wan to do a testbench?
 

hi aiko89.. if you want to know how to write a testbench for any given code then check out
WWW.TESTBENCH.IN website.. Here they talk about all verification concepts in detail and sample programs to help you out..
 

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