diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2022-06-23 11:42:58 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2022-06-23 11:42:58 +1000 |
commit | 590b9050ff5cc618b4df50e0877b4bf6d9e7949d (patch) | |
tree | 3531f7d3ae6fbffb9f812191b0769cab0c415715 /gowin/globals.h | |
parent | b950f5cb6de869658564855eb64c46c50c4bc249 (diff) | |
download | nextpnr-590b9050ff5cc618b4df50e0877b4bf6d9e7949d.tar.gz nextpnr-590b9050ff5cc618b4df50e0877b4bf6d9e7949d.tar.bz2 nextpnr-590b9050ff5cc618b4df50e0877b4bf6d9e7949d.zip |
gowin: add a separate router for the clocks
A simple router that takes advantage of the fact that in each cell with
DFFs their CLK inputs can directly connect to the global clock network.
Networks with a large number of such sinks are sought and then each
network is assigned to the available independent global clock networks.
There are limited possibilities for routing mixed networks, that is,
when the sinks are not only CLKs: in this case an attempt is made to use
wires such as SN10/20 and EW10/20, that is, one short transition can be
added between the global clock network and the sink.
* At this time, networks with a source other than the I/O pin are not
supported. This is typical for Tangnano4k and runber boards.
* Router is disabled by default, you need to specify option
--enable-globals to activate
* No new chip bases are required. This may change in the distant future.
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/globals.h')
-rw-r--r-- | gowin/globals.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gowin/globals.h b/gowin/globals.h new file mode 100644 index 00000000..4731447c --- /dev/null +++ b/gowin/globals.h @@ -0,0 +1,26 @@ +/* + * nextpnr -- Next Generation Place and Route + * + * Copyright (C) 2018 gatecat <gatecat@ds0.me> + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + */ + +#include "nextpnr.h" + +NEXTPNR_NAMESPACE_BEGIN + +void route_gowin_globals(Context *ctx); + +NEXTPNR_NAMESPACE_END |