data/full_repos/permissive/529642835/rtl/SupportChips.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/529642835/rtl/SupportChips.v:25: Multiple top level modules\n                                                                             : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                             : ... Top module \'rom2764\'\nmodule rom2764 # ( parameter INIT_FILE = "rom.txt" )\n       ^~~~~~~\n                                                                             : ... Top module \'dram\'\nmodule dram\n       ^~~~\n                                                                             : ... Top module \'sram\'\nmodule sram\n       ^~~~\n                                                                             : ... Top module \'nvram\'\nmodule nvram \n       ^~~~~\n                                                                             : ... Top module \'moram\'\nmodule moram\n       ^~~~~\n                                                                             : ... Top module \'cram82S09\'\nmodule cram82S09\n       ^~~~~~~~~\n                                                                             : ... Top module \'PokeyW\'\nmodule PokeyW\n       ^~~~~~\n                                                                             : ... Top module \'LETA\'\nmodule LETA\n       ^~~~\n%Error: data/full_repos/permissive/529642835/rtl/SupportChips.v:207: Cannot find file containing module: \'pokey\'\npokey core \n^~~~~\n        ... Looked in:\n             data/full_repos/permissive/529642835/rtl,data/full_repos/permissive/529642835/pokey\n             data/full_repos/permissive/529642835/rtl,data/full_repos/permissive/529642835/pokey.v\n             data/full_repos/permissive/529642835/rtl,data/full_repos/permissive/529642835/pokey.sv\n             pokey\n             pokey.v\n             pokey.sv\n             obj_dir/pokey\n             obj_dir/pokey.v\n             obj_dir/pokey.sv\n%Warning-WIDTH: data/full_repos/permissive/529642835/rtl/SupportChips.v:181: Bit extraction of array[32:0] requires 6 bit index, not 5 bits.\n                                                                           : ... In instance cram82S09\n      mem[addr] <= din;\n         ^\n%Warning-WIDTH: data/full_repos/permissive/529642835/rtl/SupportChips.v:183: Bit extraction of array[32:0] requires 6 bit index, not 5 bits.\n                                                                           : ... In instance cram82S09\n      dout <= mem[addr];\n                 ^\n%Error: Exiting due to 1 error(s), 3 warning(s)\n'
module moram
(
   input clk,
   input we, cs,
   input [7:0] addr,
   input [3:0] din,
   output reg [3:0] dout
);

reg [3:0] mem [0:255];

always @(posedge clk) 
begin
   if (we & cs) 
      mem[addr] <= din;
   else
      dout <= mem[addr];
end

endmodule
module moram
(
   input clk,
   input we, cs,
   input [7:0] addr,
   input [3:0] din,
   output reg [3:0] dout
);


reg [3:0] mem [0:255];

always @(posedge clk) 
begin
   if (we & cs) 
      mem[addr] <= din;
   else
      dout <= mem[addr];
end

endmodule