// Synthesizable generic design.

module sipo_8bit
(
    input              clk,
    input              rst,
    input              serial,
    output logic [7:0] q
);

    always_ff @ (posedge clk or posedge rst)
        if (rst)
            q <= '0;
        else
            q <= { q [6:0], serial };

endmodule
