nextpnr/himbaechel/uarch/gowin
YRabbit 864c1e471d
Gowin. Add a router for segments. (#1456)
Gowin chips have an interesting mechanism - wires that run vertically
through several rows (at least 10) in each column of the chip. In each
row a particular wire has branches to the left and right, covering on
average 4 neighboring cells in the row. For lack of a better term, I
further call such a wire a segment.

So a segment can provide a direct connection in a local rectangle. There
are no special restrictions on the sinks, so segment networks can be
used for ClockEnable, LocalSetReset, as well as for LUT and DFF inputs.

The sources are not so simple - the sources can be the upper or lower
end of the segment, which in theory can lead to unfortunate consequences
if the signal is applied from both ends.

The matter is complicated by the fact that there are default
connections, i.e. in the absence of any set fuse the segment input is
still connected to something (VCC for example) and to disable the unused
end of the segment you need to set a special combination of fuses.

Taking into account which end of which segment is used is one of the
tasks of this router. In addition, segment ends can physically coincide
with PLL, DSP and BSRAM inputs, which can also lead to unexpected
effects. Some of these things are tracked when generating the base, some
in this router, some when packing in gowin_pack.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
2025-03-18 12:02:49 +01:00
..
CMakeLists.txt CMake: Add include guards when IMPORT_BBA_FILES is used (#1438) 2025-01-23 10:54:37 +01:00
constids.inc Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
cst.cc apicula: add support for magic sip pins (#1370) 2024-10-09 15:16:36 +02:00
cst.h gowin: Himbaechel. Add constraint file processing. 2023-08-31 08:28:09 +02:00
globals.cc Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
globals.h gowin: Himbaechel. Add a clock router. 2023-08-31 08:28:09 +02:00
gowin.cc Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
gowin.h Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
gowin_arch_gen.py Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
gowin_utils.cc Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
gowin_utils.h Gowin. Add a router for segments. (#1456) 2025-03-18 12:02:49 +01:00
pack.cc Gowin. Add I3C io buffer. (#1445) 2025-01-29 14:02:21 +01:00
pack.h gowin: Himbaechel. Add ALU. 2023-08-31 08:28:09 +02:00