aboutsummaryrefslogtreecommitdiff
path: root/src/io.v
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-21 13:50:28 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-21 13:50:28 +0200
commitcb0be9e2039569ee7d18657e8f675d1f8369b407 (patch)
tree91fa71b3960d1ad5217759371143efbdd833d475 /src/io.v
parent98d0dd96611dc2c0e444eaf9410f8adf2924c6b5 (diff)
downloadriscv_cpu-cb0be9e2039569ee7d18657e8f675d1f8369b407.tar.gz
riscv_cpu-cb0be9e2039569ee7d18657e8f675d1f8369b407.zip
restructured project
Diffstat (limited to 'src/io.v')
-rw-r--r--src/io.v30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/io.v b/src/io.v
deleted file mode 100644
index f53062b..0000000
--- a/src/io.v
+++ /dev/null
@@ -1,30 +0,0 @@
-module io (
- input clk,
- input rstn,
-
- input we,
- input [31:0] addr,
- input [31:0] wd,
-
- output reg [31:0] rd,
-
- input [31:0] io_in,
- output reg [31:0] io_out
-);
-
-`include "include/consts.vh"
-
-always @ (posedge clk or negedge rstn) begin
- if (!rstn) begin
- io_out <= 32'b0;
- end else if (we && addr == 32'h0000_0004) begin
- io_out <= wd;
- end
-end
-
-always @ (posedge clk) begin
- if (addr == 32'h0000_0000) rd <= io_in;
- else if (addr == 32'h0000_0004) rd <= io_out;
- else rd <= 32'b0;
-end
-endmodule \ No newline at end of file