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 LETA
(
   input clk, reset_n,
   input X1, Y1, X2, Y2, X3, Y3, X4, Y4,
   input [1:0] addr,
   output reg [7:0] data
);

wire [7:0] data1,data2,data3,data4;
quad_decoder qd1 ( .clk(clk), .reset_n(reset_n), .A(X1), .B(Y1), .count(data1));
quad_decoder qd2 ( .clk(clk), .reset_n(reset_n), .A(X2), .B(Y2), .count(data2));
quad_decoder qd3 ( .clk(clk), .reset_n(reset_n), .A(X3), .B(Y3), .count(data3));
quad_decoder qd4 ( .clk(clk), .reset_n(reset_n), .A(X4), .B(Y4), .count(data4));

always @(posedge clk)
begin
  case(addr)
    2'b00: data = data1;
    2'b01: data = data2;
    2'b10: data = data3;
    2'b11: data = data4;
  endcase
end

endmodule
module LETA
(
   input clk, reset_n,
   input X1, Y1, X2, Y2, X3, Y3, X4, Y4,
   input [1:0] addr,
   output reg [7:0] data
);


wire [7:0] data1,data2,data3,data4;
quad_decoder qd1 ( .clk(clk), .reset_n(reset_n), .A(X1), .B(Y1), .count(data1));
quad_decoder qd2 ( .clk(clk), .reset_n(reset_n), .A(X2), .B(Y2), .count(data2));
quad_decoder qd3 ( .clk(clk), .reset_n(reset_n), .A(X3), .B(Y3), .count(data3));
quad_decoder qd4 ( .clk(clk), .reset_n(reset_n), .A(X4), .B(Y4), .count(data4));

always @(posedge clk)
begin
  case(addr)
    2'b00: data = data1;
    2'b01: data = data2;
    2'b10: data = data3;
    2'b11: data = data4;
  endcase
end

endmodule