Initial work on build system
Simple makefile to build testbench in vivado. Testbench currently just has a clock and a reset. Empty gb top module.
This commit is contained in:
21
sim/tbench/tb_top.sv
Normal file
21
sim/tbench/tb_top.sv
Normal file
@@ -0,0 +1,21 @@
|
||||
module tb_top ();
|
||||
|
||||
logic clk;
|
||||
logic nreset;
|
||||
|
||||
gb gb_inst (
|
||||
.clk_i (clk),
|
||||
.nreset_i(nreset)
|
||||
);
|
||||
|
||||
initial begin
|
||||
clk = 1'b0;
|
||||
nreset = 1'b1;
|
||||
|
||||
#1 nreset = 1'b0;
|
||||
#24 nreset = 1'b1;
|
||||
end // initial
|
||||
|
||||
always #5 clk = ~clk;
|
||||
|
||||
endmodule : tb_top
|
||||
Reference in New Issue
Block a user