SCLA071 August   2024 TPLD1201 , TPLD1201-Q1 , TPLD1202 , TPLD1202-Q1 , TPLD801 , TPLD801-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1What is a Lookup Table
  5. 2Thinking About a Lookup Table as a MUX
  6. 3How to Configure a Lookup Table
  7. 4Using Lookup Tables to Reduce Schematic
  8. 5Summary
  9. 6References

Using Lookup Tables to Reduce Schematic

Figure 4-1 is an example of a bus arbitration logic. The purpose of this logic is to determine which controller has priority on the bus at any given time. If both RX are low the buses are being held high. Each color box represents a different physical device. Table 4-1 shows the total area of this design upon discrete implementation without even accounting for tolerances between devices or traces needed to interconnect the devices.

 Bus Arbitration
                    Schematic Figure 4-1 Bus Arbitration Schematic
Table 4-1 Area of a Discrete Design
Quantity Device Function Color Area (mm2)
1 SN74LV32APWR Quad OR gate Red 22.0
1 SN74LVC2G08DCUR Double AND gate Green 4.60
1 SN74LVC2G07DBVR Double buffer Purple 4.64
1 SN74LVC2G04DBVR Double inverter Orange 4.64
1 SN74LVC2G132DCTR Double NAND gate Blue 8.26
5 Total 44.14
 Schematic Separated Into
                    Groups Figure 4-2 Schematic Separated Into Groups

By looking at the inputs to certain groupings of logic gates we can separate this design into 4 groups. Each one of these groups can be simplified down into a single LUT as shown in Figure 4-2.

Now that the schematic has been separated as such we can bring this design into ICS we can create a configuration with 4 pins and 4 LUTs to complete this schematic as shown in Figure 4-3.The configuration of lut1 is 2 input with the table shown in Table 4-2. The configuration of lut2 and lut3 are 3 input with the table shown in Table 4-4. the configuration of lut4 is 2 input with the table shown in Table 4-3.
 Schematic Translated to
                    ICS Figure 4-3 Schematic Translated to ICS
Table 4-2 lut1 Config Table
B A OUT
0 0 0
0 1 1
1 0 0
1 1 0
Table 4-3 lut4 Config Table
B A OUT
0 0 0
0 1 0
1 0 1
1 1 0
Table 4-4 lut2 and lut3 Config Table
C B A OUT
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1