nextpnr/fpga_interchange
gatecat 2759480cb5 interchange: Preliminary implementation of macro expansion
Signed-off-by: gatecat <gatecat@ds0.me>
2021-05-21 10:00:35 +01:00
..
examples interchange/nexus: Add counter example 2021-04-30 14:15:37 +01:00
arch_iterators.h Refactor header structures in FPGA interchange Arch. 2021-03-19 21:36:06 -07:00
arch_pack_io.cc interchange: allow LOC keyword in XDC files 2021-04-20 14:35:15 +02:00
arch_pybindings.cc Add Python bindings for placement tests 2021-04-15 10:00:45 +01:00
arch_pybindings.h Update APIs to conform to style guide. 2021-02-04 16:38:34 -08:00
arch.cc interchange: Preliminary implementation of macro expansion 2021-05-21 10:00:35 +01:00
arch.h interchange: Preliminary implementation of macro expansion 2021-05-21 10:00:35 +01:00
archdefs.h Add stub cluster API impl for remaining arches 2021-05-06 13:12:52 +01:00
cell_parameters.cc Use new parameter definition data in FPGA interchange processing. 2021-03-23 09:01:43 -07:00
cell_parameters.h Hash table refactoring 2021-04-14 10:30:19 +01:00
chipdb.h interchange: Add macro param map rules to chipdb 2021-05-21 10:00:35 +01:00
cost_map.cc Hash table refactoring 2021-04-14 10:30:19 +01:00
cost_map.h Hash table refactoring 2021-04-14 10:30:19 +01:00
dedicated_interconnect.cc Fix bug where DedicateInterconnect incorrectly allows some placement. 2021-03-30 13:24:39 -07:00
dedicated_interconnect.h Fix bug where DedicateInterconnect incorrectly allows some placement. 2021-03-30 13:24:39 -07:00
family.cmake interchange: add FASM generation target and clean-up tests 2021-04-14 14:36:07 +02:00
flat_wire_map.h Rework FPGA interchange site router. 2021-03-22 09:54:49 -07:00
fpga_interchange.cpp interchange: phys: add site instance idstr for pseudo tile PIPs 2021-05-19 18:48:54 +02:00
fpga_interchange.h Add FPGA interchange frontend and backend. 2021-02-15 09:54:58 -08:00
globals.cc interchange: Adding a basic global buffer placer 2021-05-07 10:28:59 +01:00
lookahead.capnp Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
lookahead.cc Hash table refactoring 2021-04-14 10:30:19 +01:00
lookahead.h Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
luts.cc clangformat 2021-04-12 10:26:39 +01:00
luts.h clangformat 2021-04-12 10:26:39 +01:00
macros.cc interchange: Preliminary implementation of macro expansion 2021-05-21 10:00:35 +01:00
main.cc Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
pseudo_pip_model.cc interchange: pseudo pips: fix illegal tile pseudo PIPs 2021-05-14 12:17:53 +02:00
pseudo_pip_model.h Hash table refactoring 2021-04-14 10:30:19 +01:00
README.md Update README with latest develpment progress. 2021-03-25 17:56:15 -07:00
sampler.cc Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
sampler.h Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
site_arch.cc [interchange] Fix invalid use of local variables due to refactoring. 2021-04-06 10:42:05 -07:00
site_arch.h [interchange] Fix invalid use of local variables due to refactoring. 2021-04-06 10:42:05 -07:00
site_arch.impl.h clangformat 2021-04-12 10:26:39 +01:00
site_router.cc Run clangformat 2021-05-16 16:25:05 +01:00
site_router.h interchange: pseudo pips: fix illegal tile pseudo PIPs 2021-05-14 12:17:53 +02:00
site_routing_cache.cc Initial version of inverter logic. 2021-03-23 09:03:07 -07:00
site_routing_cache.h Initial version of inverter logic. 2021-03-23 09:03:07 -07:00
site_routing_storage.h interchange: site router: fix illegal site thru paths 2021-05-10 14:05:46 +02:00
type_wire.cc Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
type_wire.h Initial lookahead for FPGA interchange. 2021-03-23 08:16:50 -07:00
xdc.cc Refactor header structures in FPGA interchange Arch. 2021-03-19 21:36:06 -07:00
xdc.h Refactor header structures in FPGA interchange Arch. 2021-03-19 21:36:06 -07:00

FPGA interchange nextpnr architecture

This nextpnr architecture is a meta architecture that in theory will implement any architecture that emits a complete FPGA interchange device database.

FPGA interchange

The FPGA interchange is a set of file formats intended to describe any modern island based FPGA. It consists of three primary file formats:

  • Device database

    • This is a description of a particular FPGA fabric. This description includes placement locations, placement constraints and a complete description of the routing fabric.
    • This file will also include timing information once added.
  • Logical netlist

    • This is the output of a synthesis tool. This is equivalent to the Yosys JSON format, EDIF, or eblif.
    • As part of future nextpnr development, a frontend will be added that takes this format as input.
  • Physical netlist

    • This is the output of a place and route tool. It can describe a clustered design, a partially or fully placed design, and a partially or fully routed design.

Current development status

This architecture implementation can be compiled in conjunction with a FPGA interchange device database, and the outputs from fpga_interchange.nextpnr_emit, which is part of the python-fpga-interchange library.

The current implementation is missing essential features for place and route. As these features are added, this implementation will become more useful.

  • Logical netlist macro expansion is not implemented, meaning that any macro primitives are unplaceable. Common macro primitives examples are differential IO buffers (IBUFDS) and some LUT RAM (e.g. RAM64X1D).
  • Timing information is missing from the FPGA interchange device database, so it is also currently missing from the FPGA interchange architecture. Once timing information is added to the device database

Weaknesses of current implementation

Initial development on the following features is started, but needs more refinement.

  • BEL validity checking is too expensive. The majority of the runtime is currently in the LUT rotation. Profiling, optimization and algorithm review is likely required to bring strict legalisation runtimes into expected levels.
  • The router lookahead is disabled by default. Without the lookahead, router runtime is terrible. However the current lookahead implementation is slow to compute and memory intensive, hence why it is disabled by default.
  • Pseudo pips (e.g. pips that consume BELs and or site resources) and pseudo site pips (e.g. site pips that route through BELs) consume site wires to indicate that they block some resources. This covers many validity check cases, but misses some. In particular, when a pseudo pip / pseudo site pip has an implication on the constraint system (e.g. LUT on a LUT-RAM BEL), an edge may be allowed incorrectly, resulting in an illegal design.

FPGA interchange fabrics

Xilinx 7-series, UltraScale and UltraScale+ fabrics have a device database generator, via RapidWright.

A Lattice Nexus device database is being worked on, via prjoxide.

FPGA interchange build system

Construction of chipdb's is currently integrated into nextpnr's CMake build system. See fpga_interchange/examples/README.md for more details.