1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/emmu/dv/dv_emmu_tb.v
Olof Kindgren c91c7abbbc emmu: Refactor and add verilator testbench
Testbench is split between the synthesizable transactors and
non-synthesizable parts to allow reuse of transactors in the newly
added verilator test bench
2015-04-10 15:30:54 +02:00

40 lines
600 B
Verilog

module dv_emmu_tb;
reg clk;
reg reset;
reg go;
//Clock
always
#10 clk = ~clk;
initial
begin
$display($time, " << Starting the Simulation >>");
#0
clk = 1'b0; // at time 0
reset = 1'b1; // reset is active
#100
reset = 1'b0; // at time 100 release reset
#100
go = 1'b1;
#10000
$finish;
end
//Waveform dump
initial
begin
$dumpfile("test.vcd");
$dumpvars(0, dv_emmu);
end
dv_emmu dv_emmu
(.clk (clk),
.reset (reset),
.go (go));
endmodule