Created
October 25, 2022 10:15
-
-
Save tzechienchu/914395bd44db1b2c1f6589c636b1b893 to your computer and use it in GitHub Desktop.
ICE40 ROM Verilog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Rom ( | |
input clk, | |
input [6:0] addr, | |
output reg [7:0] data); | |
reg [7:0] Rom [127:0]; | |
initial $readmemh("Rom.data", Rom); | |
always @(posedge clk) | |
data <= Rom[addr]; | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment