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