aboutsummaryrefslogtreecommitdiff
path: root/src/rom.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/rom.v')
-rw-r--r--src/rom.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rom.v b/src/rom.v
index b317094..d93ef07 100644
--- a/src/rom.v
+++ b/src/rom.v
@@ -3,7 +3,7 @@ module rom #(
parameter SIZE = 1024
)(
input clk,
- input [log2(SIZE/4)-1:0] addr,
+ input [N-1:0] addr,
output reg [N-1:0] data_read
);
@@ -11,10 +11,10 @@ module rom #(
//(* RAM_STYLE="BLOCK" *)
-reg [N-1:0] mem [SIZE-1:0];
+reg [N-1:0] mem [0:SIZE-1];
initial begin
- $readmemh("build/rom.hex", mem, 0, SIZE/4-1);
+ $readmemh("build/rom.hex", mem, 0, SIZE-1);
end
always @(negedge clk) begin