diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-09-23 23:42:05 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-09-23 23:42:05 -0600 |
| commit | 83be8cb319efc245c17512c86c494ace2ad022ff (patch) | |
| tree | 0cfbb8ceea1c9c576e5f37876b0a62d455da00b0 /rtl/top | |
| parent | a1720e4395f969a5855f3d3f60849653a5e7b459 (diff) | |
Add toplevel module for core tests
Diffstat (limited to 'rtl/top')
| -rw-r--r-- | rtl/top/conspiracion.sv | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/rtl/top/conspiracion.sv b/rtl/top/conspiracion.sv new file mode 100644 index 0000000..79e8bb8 --- /dev/null +++ b/rtl/top/conspiracion.sv @@ -0,0 +1,56 @@ +module conspiracion +( + input wire clk_clk, + output wire [12:0] memory_mem_a, + output wire [2:0] memory_mem_ba, + output wire memory_mem_ck, + output wire memory_mem_ck_n, + output wire memory_mem_cke, + output wire memory_mem_cs_n, + output wire memory_mem_ras_n, + output wire memory_mem_cas_n, + output wire memory_mem_we_n, + output wire memory_mem_reset_n, + inout wire [7:0] memory_mem_dq, + inout wire memory_mem_dqs, + inout wire memory_mem_dqs_n, + output wire memory_mem_odt, + output wire memory_mem_dm, + input wire memory_oct_rzqin, + + input logic dir, clr, mov, add, io, + output logic[7:0] out, + output logic done +); + + //TODO + wire reset_reset_n; + assign reset_reset_n = 1'b1; + + logic[29:0] addr; + logic[31:0] data_rd, data_wr; + logic ready, write, start; + + arm810 core + ( + .clk(clk_clk), + .bus_addr(addr), + .bus_data_rd(data_rd), + .bus_data_wr(data_wr), + .bus_ready(ready), + .bus_write(write), + .bus_start(start) + ); + + platform plat + ( + .master_0_core_addr(addr), + .master_0_core_data_rd(data_rd), + .master_0_core_data_wr(data_wr), + .master_0_core_ready(ready), + .master_0_core_write(write), + .master_0_core_start(start), + .* + ); + +endmodule |
