2023-02-08 11:57:22 +00:00
|
|
|
module rom(input [19:0] address,output wire [15:0] data ,input rd,input cs);
|
2023-02-09 14:55:24 +00:00
|
|
|
reg [15:0] memory [0:15];
|
2023-02-08 11:57:22 +00:00
|
|
|
initial begin
|
|
|
|
$readmemh("boot_code.txt", memory);
|
|
|
|
end
|
|
|
|
assign data = !rd & !cs ? memory[address]: 'hz;
|
|
|
|
endmodule
|