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:
2021-02-15 21:40:12 +00:00
parent 1a6259caa1
commit e56afb8c9e
6 changed files with 40 additions and 0 deletions

21
sim/tbench/tb_top.sv Normal file
View 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