RVSCC/rtl/InstructionMemory.sv

16 lines
275 B
Systemverilog
Raw Normal View History

2022-11-26 10:44:00 +00:00
`timescale 1ns / 1ps
// N = Bit width
module InstructionMemory #(
parameter N = 32,
parameter SIZE = 32
)
2022-11-26 10:44:00 +00:00
(
input logic[N-1:0] addr,
output logic[N-1:0] instr
);
logic[N-1:0] mem [SIZE-1:0];
initial $readmemh("../build/program.hex", mem);
2022-11-26 10:44:00 +00:00
endmodule