mirror of
https://github.com/alangarf/apple-one.git
synced 2024-11-19 21:31:08 +00:00
20 lines
279 B
Verilog
20 lines
279 B
Verilog
module rom_wozmon(
|
|
input clk,
|
|
input [7:0] address,
|
|
output reg [7:0] dout
|
|
);
|
|
|
|
reg [7:0] rom[0:255];
|
|
|
|
initial
|
|
$readmemh("../roms/rom.hex", rom, 0, 255);
|
|
|
|
always @(posedge clk)
|
|
begin
|
|
dout <= rom[address];
|
|
end
|
|
|
|
endmodule
|
|
|
|
|