data/full_repos/permissive/202776140/rams_sp_wf.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/202776140/rams_sp_wf.v:18: Bit extraction of array[255:0] requires 8 bit index, not 16 bits.\n                                                                    : ... In instance rams_sp_wf\n        RAM[addr] <= di;\n           ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/202776140/rams_sp_wf.v:22: Bit extraction of array[255:0] requires 8 bit index, not 16 bits.\n                                                                    : ... In instance rams_sp_wf\n    dout <= RAM[addr];\n               ^\n%Error: Exiting due to 2 warning(s)\n'
module rams_sp_wf (clk, we, en, addr, di, dout);
input clk; 
input we; 
input en;
input [15:0] addr; 
input [15:0] di; 
output [15:0] dout;
reg [15:0] RAM [(16 ** 2)-1:0];
reg [15:0] dout;
always @(posedge clk)
begin
  if (en)
  begin
    if (we)
      begin
        RAM[addr] <= di;
        dout <= di;
      end
   else
    dout <= RAM[addr];
  end
end
endmodule
module rams_sp_wf (clk, we, en, addr, di, dout);

input clk; 
input we; 
input en;
input [15:0] addr; 
input [15:0] di; 
output [15:0] dout;
reg [15:0] RAM [(16 ** 2)-1:0];
reg [15:0] dout;
always @(posedge clk)
begin
  if (en)
  begin
    if (we)
      begin
        RAM[addr] <= di;
        dout <= di;
      end
   else
    dout <= RAM[addr];
  end
end
endmodule