summaryrefslogtreecommitdiff
path: root/rtl/conspiracion.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-09-17 22:10:39 -0600
committerAlejandro Soto <alejandro@34project.org>2022-09-17 22:10:39 -0600
commitb0cb20496d88cd017c4c51243d16ac3b060cc1d6 (patch)
treeb73bb171b9454501a8a3e101ab9d5f05c6b72945 /rtl/conspiracion.sv
parenta9aafdf34ed44f115edf43f29a733eb82f366eb6 (diff)
Update project structure to match Verilator Makefile
Diffstat (limited to 'rtl/conspiracion.sv')
-rw-r--r--rtl/conspiracion.sv90
1 files changed, 0 insertions, 90 deletions
diff --git a/rtl/conspiracion.sv b/rtl/conspiracion.sv
deleted file mode 100644
index 83e7d10..0000000
--- a/rtl/conspiracion.sv
+++ /dev/null
@@ -1,90 +0,0 @@
-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 wire reset_reset_n,
-
- input logic dir, clr, mov, add, io,
- output logic[7:0] out,
- output logic done
-);
-
- enum {
- IDLE,
- IO,
- RELEASE
- } state;
-
- logic[29:0] addr;
- logic[31:0] data_rd, data_rw;
- logic ready, write, start;
-
- logic [7:0] leds;
-
- platform plat
- (
- .master_0_core_addr(addr),
- .master_0_core_data_rd(data_rd),
- .master_0_core_data_rw(data_rw),
- .master_0_core_ready(ready),
- .master_0_core_write(write),
- .master_0_core_start(start),
- .*
- );
-
- initial begin
- addr <= 0;
- start <= 0;
- state <= IDLE;
- done <= 0;
- end
-
- assign data_rw[7:0] = out;
- assign write = dir;
-
- always @(posedge clk_clk) unique case(state)
- IDLE: begin
- state <= RELEASE;
-
- if(~clr)
- out <= 0;
- else if(~mov)
- addr <= dir ? addr + 1 : addr - 1;
- else if(~add)
- out <= dir ? out + 1 : out - 1;
- else if(~io) begin
- start <= 1;
- state <= IO;
- end
- end
-
- IO: begin
- done <= 1;
- start <= 0;
- if(ready) begin
- if(~dir) out <= data_rd[7:0];
- state <= RELEASE;
- end
- end
-
- RELEASE: begin
- done <= ~io;
- if(clr & mov & add & io) state <= IDLE;
- end
- endcase
-endmodule