data/full_repos/permissive/529642835/rtl/ProgramMemory.v
1: b'%Error: data/full_repos/permissive/529642835/rtl/ProgramMemory.v:12: Cannot find file containing module: \'rom2764\'\nrom2764 #(.INIT_FILE("136022-101.1f.rom")) ic1F\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/529642835/rtl,data/full_repos/permissive/529642835/rom2764\n             data/full_repos/permissive/529642835/rtl,data/full_repos/permissive/529642835/rom2764.v\n             data/full_repos/permissive/529642835/rtl,data/full_repos/permissive/529642835/rom2764.sv\n             rom2764\n             rom2764.v\n             rom2764.sv\n             obj_dir/rom2764\n             obj_dir/rom2764.v\n             obj_dir/rom2764.sv\n%Error: data/full_repos/permissive/529642835/rtl/ProgramMemory.v:19: Cannot find file containing module: \'rom2764\'\nrom2764 #(.INIT_FILE("136022-102.1h.rom")) ic1H\n^~~~~~~\n%Error: data/full_repos/permissive/529642835/rtl/ProgramMemory.v:26: Cannot find file containing module: \'rom2764\'\nrom2764 #(.INIT_FILE("136022-303.1k.rom")) ic1K\n^~~~~~~\n%Error: data/full_repos/permissive/529642835/rtl/ProgramMemory.v:33: Cannot find file containing module: \'rom2764\'\nrom2764 #(.INIT_FILE("136022-304.1l.rom")) ic1L\n^~~~~~~\n%Error: data/full_repos/permissive/529642835/rtl/ProgramMemory.v:40: Cannot find file containing module: \'rom2764\'\nrom2764 #(.INIT_FILE("136022-305.1n.rom")) ic1N\n^~~~~~~\n%Error: Exiting due to 5 error(s)\n'
module ProgramMemory
(
   input clk,
   input [12:0] address,
   input ROM0n,ROM1n,ROM2n,
   input BANK0n, BANK1n,
   output reg [7:0] data_from_rom
);

wire [7:0] data_ic1F, data_ic1H, data_ic1K, data_ic1L, data_ic1N;

rom2764 #(.INIT_FILE("136022-101.1f.rom")) ic1F
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1F)
);

rom2764 #(.INIT_FILE("136022-102.1h.rom")) ic1H
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1H)
);

rom2764 #(.INIT_FILE("136022-303.1k.rom")) ic1K
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1K)
);

rom2764 #(.INIT_FILE("136022-304.1l.rom")) ic1L
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1L)
);

rom2764 #(.INIT_FILE("136022-305.1n.rom")) ic1N
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1N)
);

always @(*)
begin
   if (~ROM1n) data_from_rom = ~BANK0n ? data_ic1L : data_ic1F;
   else if (~ROM0n) data_from_rom = ~BANK0n ? data_ic1K : data_ic1H;
   elsedata_from_rom = data_ic1N;
end

endmodule
module ProgramMemory
(
   input clk,
   input [12:0] address,
   input ROM0n,ROM1n,ROM2n,
   input BANK0n, BANK1n,
   output reg [7:0] data_from_rom
);


wire [7:0] data_ic1F, data_ic1H, data_ic1K, data_ic1L, data_ic1N;

rom2764 #(.INIT_FILE("136022-101.1f.rom")) ic1F
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1F)
);

rom2764 #(.INIT_FILE("136022-102.1h.rom")) ic1H
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1H)
);

rom2764 #(.INIT_FILE("136022-303.1k.rom")) ic1K
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1K)
);

rom2764 #(.INIT_FILE("136022-304.1l.rom")) ic1L
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1L)
);

rom2764 #(.INIT_FILE("136022-305.1n.rom")) ic1N
(
   .clk(clk), 
   .addr(address),
   .data(data_ic1N)
);

always @(*)
begin
   if (~ROM1n) data_from_rom = ~BANK0n ? data_ic1L : data_ic1F;
   else if (~ROM0n) data_from_rom = ~BANK0n ? data_ic1K : data_ic1H;
   elsedata_from_rom = data_ic1N;
end

endmodule