// Pin connections are generated from the same netlist as the diagrams.
module programmable_gate_chips
(
    input        [7:0] d,
    input        [2:0] mode,
    output             y
);


    cd4048b u1
    (
        .p1_y         (y),
        .p2_kd        (1'b1),
        .p3_d7        (d [7]),
        .p4_d6        (d [6]),
        .p5_d5        (d [5]),
        .p6_d4        (d [4]),
        .p7_kb        (mode [1]),
        .p9_kc        (mode [0]),
        .p10_ka       (mode [2]),
        .p11_d3       (d [3]),
        .p12_d2       (d [2]),
        .p13_d1       (d [1]),
        .p14_d0       (d [0]),
        .p15_expand   (1'b0)
    );

endmodule
