data/full_repos/permissive/202942112/rtl/instmem.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/16091004-9d58-489f-8c8f-c1a23f9f4d59.xml
module instmem(
  input clk,
  input       [`WORD_WIDTH-1:0] inst_addr,
  output reg  [`WORD_WIDTH-1:0] inst
  );

  reg [`MEM_WIDTH-1:0] memory [0:`MEM_DEPTH-1];
  
  initial begin
    $readmemh("instmem.txt", memory);
  end


  always@(inst_addr) begin
    inst <= {memory[inst_addr],
             memory[inst_addr+1],
             memory[inst_addr+2],
             memory[inst_addr+3]};
  end
endmodule
module instmem(
  input clk,
  input       [`WORD_WIDTH-1:0] inst_addr,
  output reg  [`WORD_WIDTH-1:0] inst
  );


  reg [`MEM_WIDTH-1:0] memory [0:`MEM_DEPTH-1];
  
  initial begin
    $readmemh("instmem.txt", memory);
  end


  always@(inst_addr) begin
    inst <= {memory[inst_addr],
             memory[inst_addr+1],
             memory[inst_addr+2],
             memory[inst_addr+3]};
  end
endmodule