aboutsummaryrefslogtreecommitdiff
path: root/src/ram.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/ram.v')
-rw-r--r--src/ram.v23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ram.v b/src/ram.v
deleted file mode 100644
index 541096e..0000000
--- a/src/ram.v
+++ /dev/null
@@ -1,23 +0,0 @@
-module ram #(
- parameter N = 32,
- parameter SIZE = 1024
-)(
- input clk,
- input rstn,
- input we,
- input [N-1:0] addr,
- input [N-1:0] data_write,
- output reg [N-1:0] data_read
-);
-
-`include "include/log2.vh"
-
-//(* RAM_STYLE="BLOCK" *)
-reg [N-1:0] mem [0:SIZE-1];
-
-always @(posedge clk) begin
- if (we) mem[addr >> 2] <= data_write;
- data_read <= mem[addr >> 2];
-end
-
-endmodule