#ifndef FPGA_CELL_LUT34_H #define FPGA_CELL_LUT34_H #include "fpga_cell.h" enum lut_mode {LUT4, LUT3}; struct fpga_cell_lut34 { struct fpga_cell base_cell; int sync; /* Register output on rising edge of clk */ int led_lut_in_enable; int led_lut_out_enable; int lut_in_sel[4]; /* Input select */ int drive_sel[4]; /* Which signal to drive onto each fabric line */ int route_top_en[4]; /* Enable routing between top and main fabric */ int route_left_en[4]; /* Enable routing between left and main fabric */ int LUT4; /* Look-up table for LUT-4 configuration */ int LUT3[2]; /* Look-up tables for LUT-3 configuration */ enum lut_mode lut_mode; /* Look-up table mode selection */ }; struct fpga_cell_lut34 *fpga_cell_lut_34_new(); #endif // FPGA_CELL_LUT34_H