From 0553c4839c06011bd044f69b4913e5c793fdd2ec Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 27 Feb 2022 17:21:05 -0800 Subject: Initial commit. --- hdl/core.sv | 856 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 856 insertions(+) create mode 100644 hdl/core.sv (limited to 'hdl/core.sv') diff --git a/hdl/core.sv b/hdl/core.sv new file mode 100644 index 0000000..17b753d --- /dev/null +++ b/hdl/core.sv @@ -0,0 +1,856 @@ +`ifdef SYNTHESIS +`define lag(x) x +`else +`define lag(x) $past(x) +`endif + +module mem + ( input bit clk + , input bit reset + + , output bit ready + , input bit valid + , input bit write + , input bit [ADDR_BITS-1:0] address + , input bit [DATA_BITS-1:0] write_data + + , output bit read_valid + , output bit [DATA_BITS-1:0] read_data + ); + +parameter ADDR_BITS; +parameter DATA_BITS; +parameter INIT_FILE; + +bit [DATA_BITS-1:0] storage [0:(1<= 26000) $finish; + end +`endif + end + + if (switch_sing_step) + run = 0; + + if (state == FETCH && switch_sing_inst) + run = 0; + + rx_ready = !tti_valid; + end + end +end + +endmodule -- cgit v1.2.3