// assign statements (if any)
top i1 (
// port map - connection between master ports and signals/registers
.handshake(handshake),
.key(key),
.last(last),
.top_clk(top_clk),
.top_data_complete(top_data_complete),
.top_datain(top_datain),
.top_dataout(top_dataout),
.top_opcode(top_opcode),
.top_rk_complete(top_rk_complete),
.top_rst(top_rst)
);
initial
begin
// code that executes only once
// insert code here --> begin
// --> end
$display("Running testbench");
end
always
// optional sensitivity list
// @(event1 or event2 or .... eventn)
begin
// code executes for every event on sensitivity list
// insert code here --> begin
虽然没有成功,可能是我操作的原因吧。谢谢5525的帮助!我做的是一个加密算法的仿真,上面那个vt(打错打成vo了)文件是用start test bench template writer生成的,算法编译没问题,就是仿真时加密部分启动不了。我把仿真图片和代码(代码还是比较有用的)发上来,希望你帮我仿真一下。另外本人真诚希望与你进一步交流,qq2206638817
begin
top_rst = 0;
last = 0;
key = 0;
top_datain = 0;
top_opcode = 0;
handshake = 0;
top_clk = 0;
// code that executes only once
// insert code here --> begin
repeat(5) @(posedge top_clk)
top_rst = 1;
// --> end
$display("Running testbench");
end