Comments (5)
it all crashes on line 90
Line 90 in 79c6840
and it collapses because a port with the name SW[-1] arrives to it, this -1 leads to the construction of a vector of size 0 and the size does not increase, because it calmly passes the check on line 88 (-1 is not greater than 0).
Now about SW[-1] - this is ctx->ports, but I never touch ports and I don't care what they have in their names and I don't change their names.
But in the input JSON after yosys it looks like:
"board_specific_top": {
"attributes": {
"dynports": "00000000000000000000000000000001",
"top": "00000000000000000000000000000001",
"src": "board_specific_top.sv:3.1-152.10"
},
"parameter_default_values": {
"clk_mhz": "00000000000000000000000000011011",
"w_digit": "00000000000000000000000000000000",
"w_gpio": "00000000000000000000000000000011",
"w_key": "00000000000000000000000000000010",
"w_led": "00000000000000000000000000000110",
"w_sw": "00000000000000000000000000000000"
},
"ports": {
"CLK": {
"direction": "input",
"bits": [ 2 ]
},
"KEY": {
"direction": "input",
"bits": [ 3, 4 ]
},
"SW": {
"direction": "input",
"offset": -1,
"upto": 1,
"bits": [ 5, 6 ]
},
"UART_RX": {
"direction": "input",
"bits": [ 7 ]
},
If the elders of nextpnr tell me that I should do something with these "offset" and "upto", then of course I will. But I repeat - I donβt care what is written in the port names, for me they are just names.
I could be terribly wrong
from nextpnr.
Yes, it looks like this is a generic bug with negative indices in the JSON backend rather than anything gowin specific, I will look into it.
from nextpnr.
This should hopefully be fixed in #1209
from nextpnr.
I build nextpnr-gowin based on your commit and project is working now.
Thanks for your help!
P.S. Should I close this issue? Or it will be closed automatically after merging of pull-request?
P.P.S Do you know approximate time of adding this changes to main repository?
from nextpnr.
P.S. Should I close this issue? Or it will be closed automatically after merging of pull-request?
Close it, please ;)
from nextpnr.
Related Issues (20)
- Add NetBSD support HOT 2
- nextpnr-ecp5 build failed during chipdb generation HOT 9
- On iCE40, use SB_IO PIN_TYPE to avoid unnecessary placement constraint on buffers HOT 4
- Symbol not found: __ZNK5boost10filesystem4path7stem_v3Ev HOT 5
- DSP Primitives not working on GOWIN or Himbaechel HOT 13
- Histogram should probably show slack 0 to improve clarity
- I can't find the arch file chipdb-5k.bin, where is it ? HOT 2
- Routing fails on Crosslink Nexus: "Failed to route arc 0.0 of net 'clk'" HOT 4
- ecp5: trouble using IO_TYPE=LVDS HOT 8
- Does anyone know how to get this working in Void Linux? HOT 2
- Himbaechel Example fail
- Matching Bel type shows as not matching HOT 2
- Problem with ALU54D, "Unable to find legal placement" HOT 5
- PIN "U3" unavailabel in ECP5's CABGA381 package HOT 1
- Could not use nextpnr-gowin with --family GW2A-18C HOT 2
- Is there MachXO3 support? HOT 2
- [Feature request] backend for SOFA (Skywater Opensource FPGAs) HOT 3
- An option to reject inputs where some of the clock nets have no defined or derived constraints HOT 4
- Fmax estimation implemented with nextpnr-himbaechel for Gowin devices? HOT 3
- Infinite loop in router for a large fraction of seeds on a consistent net
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 nextpnr.