data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:40: 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 \'sll_barrel\'\nmodule sll_barrel(\n       ^~~~~~~~~~\n                                                                                              : ... Top module \'srl_barrel\'\nmodule srl_barrel(\n       ^~~~~~~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:51: Cannot find file containing module: \'mux21\'\nmux21 u0(ST1[15], a[15], 1\'b0,    b[2]);\n^~~~~\n        ... Looked in:\n             data/full_repos/permissive/477054115/Mips16_singlecycle,data/full_repos/permissive/477054115/mux21\n             data/full_repos/permissive/477054115/Mips16_singlecycle,data/full_repos/permissive/477054115/mux21.v\n             data/full_repos/permissive/477054115/Mips16_singlecycle,data/full_repos/permissive/477054115/mux21.sv\n             mux21\n             mux21.v\n             mux21.sv\n             obj_dir/mux21\n             obj_dir/mux21.v\n             obj_dir/mux21.sv\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:52: Cannot find file containing module: \'mux21\'\nmux21 u1(ST1[14], a[14], 1\'b0,    b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:53: Cannot find file containing module: \'mux21\'\nmux21 u2(ST1[13], a[13], 1\'b0,    b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:54: Cannot find file containing module: \'mux21\'\nmux21 u3(ST1[12], a[12], 1\'b0,    b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:58: Cannot find file containing module: \'mux21\'\n        mux21 u4(ST1[i], a[i], a[i + 4],   b[2]);        \n        ^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:61: Cannot find file containing module: \'mux21\'\nmux21 u5(ST2[15], ST1[15], 1\'b0,    b[1]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:62: Cannot find file containing module: \'mux21\'\nmux21 u6(ST2[14], ST1[14], 1\'b0,    b[1]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:65: Cannot find file containing module: \'mux21\'\n        mux21 u7(ST2[i], ST1[i], ST1[i + 2],   b[1]);        \n        ^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:68: Cannot find file containing module: \'mux21\'\nmux21 u8(c[15], ST2[15], 1\'b0,    b[0]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:71: Cannot find file containing module: \'mux21\'\n        mux21 u9(c[i], ST2[i], ST2[i + 1],   b[0]);        \n        ^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:13: Cannot find file containing module: \'mux21\'\nmux21 u0(ST1[0], a[0], 1\'b0,  b[0]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:17: Cannot find file containing module: \'mux21\'\n        mux21 u1(ST1[i+1], a[i+1], a[i],  b[0]);        \n        ^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:20: Cannot find file containing module: \'mux21\'\nmux21 u2(ST2[0], ST1[0], 1\'b0,  b[1]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:21: Cannot find file containing module: \'mux21\'\nmux21 u3(ST2[1], ST1[1], 1\'b0,  b[1]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:24: Cannot find file containing module: \'mux21\'\n        mux21 u4(ST2[i+2], ST1[i+2], ST1[i],  b[1]);        \n        ^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:27: Cannot find file containing module: \'mux21\'\nmux21 u5(c[0], ST2[0], 1\'b0,  b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:28: Cannot find file containing module: \'mux21\'\nmux21 u6(c[1], ST2[1], 1\'b0,  b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:29: Cannot find file containing module: \'mux21\'\nmux21 u7(c[2], ST2[2], 1\'b0,  b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:30: Cannot find file containing module: \'mux21\'\nmux21 u8(c[3], ST2[3], 1\'b0,  b[2]);\n^~~~~\n%Error: data/full_repos/permissive/477054115/Mips16_singlecycle/BarrelShifters.v:33: Cannot find file containing module: \'mux21\'\n        mux21 u9(c[i+4], ST2[i+4], ST2[i],  b[2]);        \n        ^~~~~\n%Error: Exiting due to 20 error(s), 1 warning(s)\n'
module srl_barrel(
    input [15:0] a,
    input [2:0] b,
    output [15:0] c
);




wire [15:0]    ST1,ST2;

mux21 u0(ST1[15], a[15], 1'b0,    b[2]);
mux21 u1(ST1[14], a[14], 1'b0,    b[2]);
mux21 u2(ST1[13], a[13], 1'b0,    b[2]);
mux21 u3(ST1[12], a[12], 1'b0,    b[2]);
genvar i;
generate
    for (i = 11; i >= 0; i = i - 1) begin : RshiftBy4
        mux21 u4(ST1[i], a[i], a[i + 4],   b[2]);        
    end
endgenerate
mux21 u5(ST2[15], ST1[15], 1'b0,    b[1]);
mux21 u6(ST2[14], ST1[14], 1'b0,    b[1]);
generate
    for (i = 13; i >= 0; i = i - 1) begin : RshiftBy2
        mux21 u7(ST2[i], ST1[i], ST1[i + 2],   b[1]);        
    end
endgenerate
mux21 u8(c[15], ST2[15], 1'b0,    b[0]);
generate
    for (i = 14; i >= 0; i = i - 1) begin : RshiftBy1
        mux21 u9(c[i], ST2[i], ST2[i + 1],   b[0]);        
    end
endgenerate
endmodule
module srl_barrel(
    input [15:0] a,
    input [2:0] b,
    output [15:0] c
);





wire [15:0]    ST1,ST2;

mux21 u0(ST1[15], a[15], 1'b0,    b[2]);
mux21 u1(ST1[14], a[14], 1'b0,    b[2]);
mux21 u2(ST1[13], a[13], 1'b0,    b[2]);
mux21 u3(ST1[12], a[12], 1'b0,    b[2]);
genvar i;
generate
    for (i = 11; i >= 0; i = i - 1) begin : RshiftBy4
        mux21 u4(ST1[i], a[i], a[i + 4],   b[2]);        
    end
endgenerate
mux21 u5(ST2[15], ST1[15], 1'b0,    b[1]);
mux21 u6(ST2[14], ST1[14], 1'b0,    b[1]);
generate
    for (i = 13; i >= 0; i = i - 1) begin : RshiftBy2
        mux21 u7(ST2[i], ST1[i], ST1[i + 2],   b[1]);        
    end
endgenerate
mux21 u8(c[15], ST2[15], 1'b0,    b[0]);
generate
    for (i = 14; i >= 0; i = i - 1) begin : RshiftBy1
        mux21 u9(c[i], ST2[i], ST2[i + 1],   b[0]);        
    end
endgenerate
endmodule