// Synthesizable ideal digital model; power and propagation delays omitted.

module cd40174b
(
    input  p1_clear_n,
    input  p3_d0,
    input  p4_d1,
    input  p6_d2,
    input  p9_clk,
    input  p11_d3,
    input  p13_d4,
    input  p14_d5,
    output p2_q0,
    output p5_q1,
    output p7_q2,
    output p10_q3,
    output p12_q4,
    output p15_q5
);

    logic [5:0] state;
    always_ff @ (posedge p9_clk or negedge p1_clear_n)
        if (~ p1_clear_n)
            state <= '0;
        else
            state <= { p14_d5, p13_d4, p11_d3, p6_d2, p4_d1, p3_d0 };
    assign { p15_q5, p12_q4, p10_q3, p7_q2, p5_q1, p2_q0 } = state;

endmodule
