data/full_repos/permissive/198830281/barrelShifterNBit.v
1: b'%Error: data/full_repos/permissive/198830281/barrelShifterNBit.v:14: Unsupported: `default_nettype of other than none or wire: `default_nettype None\n`default_nettype None\n^~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 1 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module barrelShifterNBit #(parameter n = 4) (output reg[n-1:0] out, input[n-1:0] in, input[$clog2(n):0] shift);

    integer i;
    always @ (in, shift) begin
        for(i = 0; i < n; i = i+1) begin
            if(i + shift < n)
                out[i+shift] = in[i];
            else
                out[i+shift-n] = in[i];
        end
    end
endmodule
module barrelShifterNBit #(parameter n = 4) (output reg[n-1:0] out, input[n-1:0] in, input[$clog2(n):0] shift);


    integer i;
    always @ (in, shift) begin
        for(i = 0; i < n; i = i+1) begin
            if(i + shift < n)
                out[i+shift] = in[i];
            else
                out[i+shift-n] = in[i];
        end
    end
endmodule