data/full_repos/permissive/46343463/src/EXMEM_Reg.v
1: b"%Error: data/full_repos/permissive/46343463/src/EXMEM_Reg.v:19: Cannot find file containing module: 'Latch'\n    Latch #(.width(2)) EXMEM_MEM_ctrl (\n    ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/46343463/src,data/full_repos/permissive/46343463/Latch\n             data/full_repos/permissive/46343463/src,data/full_repos/permissive/46343463/Latch.v\n             data/full_repos/permissive/46343463/src,data/full_repos/permissive/46343463/Latch.sv\n             Latch\n             Latch.v\n             Latch.sv\n             obj_dir/Latch\n             obj_dir/Latch.v\n             obj_dir/Latch.sv\n%Error: data/full_repos/permissive/46343463/src/EXMEM_Reg.v:27: Cannot find file containing module: 'Latch'\n    Latch #(.width(2)) EXMEM_WB_ctrl (\n    ^~~~~\n%Error: data/full_repos/permissive/46343463/src/EXMEM_Reg.v:35: Cannot find file containing module: 'Latch'\n    Latch EXMEM_ALU_output (\n    ^~~~~\n%Error: data/full_repos/permissive/46343463/src/EXMEM_Reg.v:43: Cannot find file containing module: 'Latch'\n    Latch EXMEM_ALU_data_2 (\n    ^~~~~\n%Error: data/full_repos/permissive/46343463/src/EXMEM_Reg.v:51: Cannot find file containing module: 'Latch'\n    Latch #(.width(5)) EXMEM_RegFwd (\n    ^~~~~\n%Error: Exiting due to 5 error(s)\n"
module EXMEM_Reg (
    input       clk,

    input       flush,
    input       stall,

    input   [2-1:0]     MEM_ctrl_i,
    output  [2-1:0]     MEM_ctrl_o,
    input   [2-1:0]     WB_ctrl_i,
    output  [2-1:0]     WB_ctrl_o,
    input   [32-1:0]    ALU_output_i,
    output  [32-1:0]    ALU_output_o,
    input   [32-1:0]    ALU_data_2_i,
    output  [32-1:0]    ALU_data_2_o,
    input   [5-1:0]     RegFwd_i,
    output  [5-1:0]     RegFwd_o
);

    Latch #(.width(2)) EXMEM_MEM_ctrl (
    	.clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(MEM_ctrl_i),
    	.data_o			(MEM_ctrl_o)
    );

    Latch #(.width(2)) EXMEM_WB_ctrl (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(WB_ctrl_i),
    	.data_o			(WB_ctrl_o)
    );

    Latch EXMEM_ALU_output (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(ALU_output_i),
    	.data_o			(ALU_output_o)
    );

    Latch EXMEM_ALU_data_2 (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(ALU_data_2_i),
    	.data_o			(ALU_data_2_o)
    );

    Latch #(.width(5)) EXMEM_RegFwd (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(RegFwd_i),
    	.data_o			(RegFwd_o)
    );

endmodule
module EXMEM_Reg (
    input       clk,

    input       flush,
    input       stall,

    input   [2-1:0]     MEM_ctrl_i,
    output  [2-1:0]     MEM_ctrl_o,
    input   [2-1:0]     WB_ctrl_i,
    output  [2-1:0]     WB_ctrl_o,
    input   [32-1:0]    ALU_output_i,
    output  [32-1:0]    ALU_output_o,
    input   [32-1:0]    ALU_data_2_i,
    output  [32-1:0]    ALU_data_2_o,
    input   [5-1:0]     RegFwd_i,
    output  [5-1:0]     RegFwd_o
);


    Latch #(.width(2)) EXMEM_MEM_ctrl (
    	.clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(MEM_ctrl_i),
    	.data_o			(MEM_ctrl_o)
    );

    Latch #(.width(2)) EXMEM_WB_ctrl (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(WB_ctrl_i),
    	.data_o			(WB_ctrl_o)
    );

    Latch EXMEM_ALU_output (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(ALU_output_i),
    	.data_o			(ALU_output_o)
    );

    Latch EXMEM_ALU_data_2 (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(ALU_data_2_i),
    	.data_o			(ALU_data_2_o)
    );

    Latch #(.width(5)) EXMEM_RegFwd (
        .clk			(clk),
    	.rst			(~flush),
    	.we				(~stall),
    	.data_i			(RegFwd_i),
    	.data_o			(RegFwd_o)
    );

endmodule