data/full_repos/permissive/497819211/04/Memory.v
1: b"%Error: data/full_repos/permissive/497819211/04/Memory.v:41: Cannot find file containing module: 'DMux'\n    DMux DMUX1(\n    ^~~~\n        ... Looked in:\n             data/full_repos/permissive/497819211/04,data/full_repos/permissive/497819211/DMux\n             data/full_repos/permissive/497819211/04,data/full_repos/permissive/497819211/DMux.v\n             data/full_repos/permissive/497819211/04,data/full_repos/permissive/497819211/DMux.sv\n             DMux\n             DMux.v\n             DMux.sv\n             obj_dir/DMux\n             obj_dir/DMux.v\n             obj_dir/DMux.sv\n%Error: data/full_repos/permissive/497819211/04/Memory.v:47: Cannot find file containing module: 'DMux'\n    DMux DMUX2(\n    ^~~~\n%Error: data/full_repos/permissive/497819211/04/Memory.v:55: Cannot find file containing module: 'RAM'\n    RAM RAM1(\n    ^~~\n%Error: data/full_repos/permissive/497819211/04/Memory.v:65: Cannot find file containing module: 'Btn'\n    Btn BTN(.out(outBtn), .btn(btn));\n    ^~~\n%Error: data/full_repos/permissive/497819211/04/Memory.v:68: Cannot find file containing module: 'Led'\n    Led LED(.clk(clk), .in(in), .out(outLed), .load(loadLed), .led(led));\n    ^~~\n%Error: data/full_repos/permissive/497819211/04/Memory.v:71: Cannot find file containing module: 'Mux16'\n    Mux16 MUX161(\n    ^~~~~\n%Error: data/full_repos/permissive/497819211/04/Memory.v:78: Cannot find file containing module: 'Mux16'\n    Mux16 MUX162(\n    ^~~~~\n%Error: Exiting due to 7 error(s)\n"
module Memory(
    input clk,
	input wire [15:0] address,
	input wire load,
	input wire btn,
	output wire led,
	output wire [15:0] out,
	input wire [15:0] in
);










    wire loadRAM;
    wire loadIO;
    wire loadBtn;
    wire loadLed;
    DMux DMUX1(
	    .in(load),
	    .sel(address[13]),
	    .a(loadRAM),
		.b(loadIO)
	  );
    DMux DMUX2(
	    .in(loadIO),
	    .sel(address[0]),
	    .a(loadBtn),
		.b(loadLed)
	  );

    wire[15:0] outRAM;
    RAM RAM1(
    	.clk(clk),
		.address(address),
		.load(loadRAM),
		.in(in),
		.out(outRAM)
  	);


    wire[15:0] outBtn;
    Btn BTN(.out(outBtn), .btn(btn));

    wire[15:0] outLed;
    Led LED(.clk(clk), .in(in), .out(outLed), .load(loadLed), .led(led));
    
    wire[15:0] tmp;
    Mux16 MUX161(
		.a(outBtn),
		.b(outLed),
		.sel(address[0]),
	    .out(tmp)
	  );
    
    Mux16 MUX162(
		.a(outRAM),
		.b(tmp),
		.sel(address[13]),
	    .out(out)
	  );
    






endmodule
module Memory(
    input clk,
	input wire [15:0] address,
	input wire load,
	input wire btn,
	output wire led,
	output wire [15:0] out,
	input wire [15:0] in
);











    wire loadRAM;
    wire loadIO;
    wire loadBtn;
    wire loadLed;
    DMux DMUX1(
	    .in(load),
	    .sel(address[13]),
	    .a(loadRAM),
		.b(loadIO)
	  );
    DMux DMUX2(
	    .in(loadIO),
	    .sel(address[0]),
	    .a(loadBtn),
		.b(loadLed)
	  );

    wire[15:0] outRAM;
    RAM RAM1(
    	.clk(clk),
		.address(address),
		.load(loadRAM),
		.in(in),
		.out(outRAM)
  	);


    wire[15:0] outBtn;
    Btn BTN(.out(outBtn), .btn(btn));

    wire[15:0] outLed;
    Led LED(.clk(clk), .in(in), .out(outLed), .load(loadLed), .led(led));
    
    wire[15:0] tmp;
    Mux16 MUX161(
		.a(outBtn),
		.b(outLed),
		.sel(address[0]),
	    .out(tmp)
	  );
    
    Mux16 MUX162(
		.a(outRAM),
		.b(tmp),
		.sel(address[13]),
	    .out(out)
	  );
    






endmodule