data/full_repos/permissive/110151336/lab_05/src/05_rotators/common/right_rotator.v
data/verilator_xmls/f13d10f3-7306-45c2-b0dc-35bf1f68e869.xml
module right_rotator
#( 
    parameter WIDTH = 8,
    parameter SHIFT = 3
)
(
    input  [WIDTH - 1:0] x,
    input  [SHIFT - 1:0] shamt,
    output [WIDTH - 1:0] z
);

    wire [2 * WIDTH - 1:0] temp;
    assign temp = {x, x} >> shamt;
    assign z = temp[WIDTH - 1: 0];
endmodule
module right_rotator
#( 
    parameter WIDTH = 8,
    parameter SHIFT = 3
)
(
    input  [WIDTH - 1:0] x,
    input  [SHIFT - 1:0] shamt,
    output [WIDTH - 1:0] z
);


    wire [2 * WIDTH - 1:0] temp;
    assign temp = {x, x} >> shamt;
    assign z = temp[WIDTH - 1: 0];
endmodule