// Synthesizable platform adapter. Not part of the breadboard circuit.

module exercise_bridge
# (
    parameter CHIP_MODEL = 0
)
(
    input              clk,
    input              rst,
    input        [7:0] data,
    input        [3:0] aux,
    output       [7:0] led,
    output       [20:0] segments
);

    logic y_and;
    logic y_or;
    logic y_not;
    logic y_xor;

    generate
        if (CHIP_MODEL == 0)
        begin : generic_version
            basic_gates dut
            (
                .a            (data [0]),
                .b            (data [1]),
                .y_and        (y_and),
                .y_or         (y_or),
                .y_not        (y_not),
                .y_xor        (y_xor)
            );
        end
        else
        begin : chip_version
            basic_gates_chips dut
            (
                .a            (data [0]),
                .b            (data [1]),
                .y_and        (y_and),
                .y_or         (y_or),
                .y_not        (y_not),
                .y_xor        (y_xor)
            );
        end
    endgenerate

    assign led      = { 4'b0, y_xor, y_not, y_or, y_and };
    assign segments = '0;

endmodule
