diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2023-04-18 20:10:36 +1000 |
---|---|---|
committer | myrtle <gatecat@ds0.me> | 2023-04-20 08:35:50 +0200 |
commit | fdc2769259903f791db6f9d86fb0fdf8cbbe9bb6 (patch) | |
tree | 085bde6cf231edad463c41818e8a909fd0f2a9a3 /gowin/arch.h | |
parent | 71192dc7a3b8dfae1f76f48412dd906bfb0783e7 (diff) | |
download | nextpnr-fdc2769259903f791db6f9d86fb0fdf8cbbe9bb6.tar.gz nextpnr-fdc2769259903f791db6f9d86fb0fdf8cbbe9bb6.tar.bz2 nextpnr-fdc2769259903f791db6f9d86fb0fdf8cbbe9bb6.zip |
gowin: add a common mechanism for placing ports
If the port is in a different cell than the primitive, then use the alias mechanism.
Considerably compact code for OSC as an example.
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/arch.h')
-rw-r--r-- | gowin/arch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gowin/arch.h b/gowin/arch.h index c3e1e7dd..ff8905ac 100644 --- a/gowin/arch.h +++ b/gowin/arch.h @@ -498,6 +498,8 @@ struct Arch : BaseArch<ArchRanges> void mark_used_hclk(Context *ctx); IdString apply_local_aliases(int row, int col, const DatabasePOD *db, IdString &wire); + WireId get_make_port_wire(const DatabasePOD *db, const BelsPOD *bel, int row, int col, IdString port); + GowinGlobalRouter globals_router; void mark_gowin_globals(Context *ctx); void route_gowin_globals(Context *ctx); |