aboutsummaryrefslogtreecommitdiff
path: root/src/rom.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/rom.v')
-rw-r--r--src/rom.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rom.v b/src/rom.v
new file mode 100644
index 0000000..90a9846
--- /dev/null
+++ b/src/rom.v
@@ -0,0 +1,13 @@
+module rom #(
+ parameter N = 32,
+ parameter SIZE = 1024
+)(
+ input clk,
+ input rst,
+ input [log2(SIZE)-1:0] addr,
+ output [N-1:0] data_read
+);
+
+`include "include/log2.vh"
+
+endmodule