Comments (6)
Ok I have done some research and here are findings.
In project icestorm there is generated file chipdb-1k.txt that contain list of GLOBAL_BUFFER_OUTPUTs
.gbufpin
13 8 1 0
0 8 1 1
7 17 0 2
7 0 0 3
0 9 0 4
13 9 0 5
6 0 1 6
6 17 1 7
If we check tile 248 (hex F8) we will find that it is tile : F8=10 + 14*17 , and that correspond to PIN 116 for tq144 ( 116 10 17 1 )
And we can see that value is not in gbufpin list, so it can not be used.
If I map gbufpin this to pins I get list : 93,21,128,50 ,20 ,94 ,49 and 129
So those are the pins that should be used.
For 8K build pin H16 ( location 33 17 0) is used, and that one is also in gbufpin list for 8k, so that is reason why that is working.
My suggestion is just to add check if pin is contained in list, and if not give error back to user.
from arachne-pnr.
Here is a patch I had on mind:
src/global.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/global.cc b/src/global.cc
index bf5d00c..79d12ea 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -239,7 +239,10 @@ Promoter::promote(bool do_promote)
Port *out = inst->find_port("GLOBAL_BUFFER_OUTPUT");
if (out->connected())
{
- int g = chipdb->loc_pin_glb_num.at(chipdb->cell_location[c]);
+ auto loc = chipdb->cell_location[c];
+ if (chipdb->loc_pin_glb_num.find(loc) == chipdb->loc_pin_glb_num.end())
+ fatal(fmt("Not able to use pin " << ds.package.loc_pin.at(loc) << " for global buffer output"));
+ int g = chipdb->loc_pin_glb_num.at(loc);
for (uint8_t gc : global_classes)
{
if (gc & (1 << g))
from arachne-pnr.
Thanks! That actually makes a lot of sense.
Sadly that means that the HX1K IceStick does not have a single GBIN pin on a header...
from arachne-pnr.
Sadly that means that the HX1K IceStick does not have a single GBIN pin on a header...
Yes. I've heard people complain about that before.. :)
But if you can afford the slight additional delay you can still route to the global net via the FPGA fabric. Use the SB_GB
to do that. (But if its a clock then arachne-pnr will instantiate the SB_GB
automatically for you in most cases.)
from arachne-pnr.
Thanks for the hint!
I think this is feasible here and I just implemented it :).
from arachne-pnr.
@dpiegdon No problem, glad I could help. Was interesting to get more into this tool source and better understand Lattice internal organisation.
from arachne-pnr.
Related Issues (20)
- fatal error: $_TBUF_ gate must drive only one top-level output or inout port HOT 6
- void Model::check(const Design*) const: Assertion `!p2->is_bidir()' failed HOT 5
- SB_IO and SB_GB_IO PACKAGE_PIN connected to the same port cause fatal error HOT 2
- Add tags for release versions HOT 4
- `make simpletest` fails on tests/io/tri HOT 2
- Version comparison is too strict
- Fatal Error: unknown model when parsing blif file HOT 3
- UltraPlus 5K LVDS HOT 7
- arachne-pnr crashes when compiled with _GLIBCXX_ASSERTIONS HOT 1
- arachne-pnr couldn't process wide bit width counter for lm4k
- Regression? It fails to handle tristate buffer properly. HOT 1
- failed to place HFOSC HOT 9
- src/route.cc:725: void Router::route(): Assertion `cnet_net[cn] == nullptr || cnet_net[cn] == n' failed. HOT 1
- Unable to use differential input on LP384 HOT 4
- fatal error: failed to route - pass 200, 1 shared. HOT 3
- "src/util.hh:191:24: error: moving a local object in a return statement prevents copy elision" HOT 4
- Add information to README pointing people to nextpnr HOT 1
- Core dump on 8k routing HOT 1
- Regarding nextpnr installation issue HOT 1
- Undefined behaviour generated when output is assigned to 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arachne-pnr.