Add: archi and comment in top level | Fix: missing var declaration in reg test bench
This commit is contained in:
13
rtl/risc_v_cpu_top.v
Normal file
13
rtl/risc_v_cpu_top.v
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
module risc_v_cpu_top (input clock, reset,
|
||||||
|
output [31:0] out);
|
||||||
|
|
||||||
|
/* You can use the following file as your top layer for your FPGA synthesis */
|
||||||
|
|
||||||
|
risc_v_cpu risc_v_cpu (
|
||||||
|
.clock(clock),
|
||||||
|
.reset(reset),
|
||||||
|
.out(out)
|
||||||
|
);
|
||||||
|
|
||||||
|
endmodule
|
||||||
|
|
@@ -2,6 +2,7 @@
|
|||||||
`include "tb_tools.vh"
|
`include "tb_tools.vh"
|
||||||
|
|
||||||
module tb_registers_bank ();
|
module tb_registers_bank ();
|
||||||
|
integer i;
|
||||||
reg clk;
|
reg clk;
|
||||||
reg reset;
|
reg reset;
|
||||||
reg we;
|
reg we;
|
||||||
|
@@ -42,4 +42,4 @@
|
|||||||
|
|
||||||
`define next_cycle \
|
`define next_cycle \
|
||||||
#1 clk = ~clk; \
|
#1 clk = ~clk; \
|
||||||
#1 clk = ~clk;
|
#1 clk = ~clk;
|
||||||
|
Reference in New Issue
Block a user