// Synthesizable ideal digital model; power and propagation delays omitted.
// Digital forward-path subset: INHIBIT=0 and VEE=GND; no analog or reverse path.

module cd4051b
(
    input  p1_d4,
    input  p2_d6,
    input  p4_d7,
    input  p5_d5,
    input  p6_inhibit,
    input  p7_vee,
    input  p9_s2,
    input  p10_s1,
    input  p11_s0,
    input  p12_d3,
    input  p13_d0,
    input  p14_d1,
    input  p15_d2,
    output p3_y
);

    wire [7:0] data_bits   = { p4_d7, p2_d6, p5_d5, p1_d4, p12_d3, p15_d2, p14_d1, p13_d0 };
    wire [2:0] select_bits = { p9_s2, p10_s1, p11_s0 };
    assign p3_y            = data_bits [select_bits];

endmodule
