Commit Graph

30 Commits

Author SHA1 Message Date
Miodrag Milanovic 03dff10cbd Load properties from json and propagate to context create 2019-06-13 20:42:11 +02:00
Miodrag Milanovic 4de147d9e4 Save settings that we saved in project 2019-06-13 18:39:16 +02:00
Miodrag Milanovic 856760599e Use properties for settings and save in json 2019-06-12 18:34:34 +02:00
Miodrag Milanovic d9b0bac248 Save top level attrs and store current step 2019-06-07 16:11:11 +02:00
Miodrag Milanovic a8871ea8aa Cleanup and fixes, flow works now 2019-06-07 13:19:11 +02:00
Miodrag Milanovic 1093d7e122 WIP saving/loading attributes 2019-06-07 11:48:15 +02:00
Miodrag Milanovic d5f804832f hacky way to support ECP5 for now 2019-06-03 21:13:47 +02:00
Miodrag Milanovic d5d8213871 Added support for attributes/properties types 2019-06-01 15:52:32 +02:00
Miodrag Milanovic ccbe2dd18d Add reading attributes to nets from json 2019-06-01 11:41:50 +02:00
whitequark a0c9a70a5e When choosing between labels for one net, always prefer ports.
1. Ports are already used in PCF and LPF files, so it is natural
that the developer would use them for constraints as well.

2. Unpredictable (the set of netlabels nextpnr looks at depends on
the optimizations during synthesis) net naming makes it impossible
for code generators like nMigen to reliably apply clock constraints.
2019-05-29 18:05:48 +00:00
David Shah 997a66791e json: Fix inputs directly driving inouts
Signed-off-by: David Shah <dave@ds0.me>
2019-03-20 16:07:47 +00:00
David Shah 8623bbc107 json: Prefer higher level net names when a net has multiple names
Signed-off-by: David Shah <davey1576@gmail.com>
2018-12-16 16:44:19 +00:00
David Shah 9d852f02b6 json: Print error instead of assert for driver/input conflicts
Signed-off-by: David Shah <dave@ds0.me>
2018-12-12 17:31:24 +00:00
David Shah dbc14ea76d json: Improve reporting of multiple drivers
Signed-off-by: David Shah <dave@ds0.me>
2018-11-29 19:20:51 +00:00
David Shah eda77a5244 json: Remove superfluous floating node message
Signed-off-by: David Shah <dave@ds0.me>
2018-11-26 09:36:43 +00:00
Darrell Harmon cdd0f0fea0 better error message on failure to open JSON file 2018-11-11 12:50:14 -07:00
Clifford Wolf 26be6f9761
Merge pull request #47 from YosysHQ/settings_propagate
Use settings for placer1 and router1
2018-08-18 19:25:19 +02:00
ZipCPU b945de8b1f JSON-PARSER: Fixed bug in properly reading neg #s 2018-08-15 08:09:55 -04:00
ZipCPU e93c990f42 Fixed JSON parser: negative values and line numbers
1. jsonparse.cc now access negative numbers, properly parsing the sign
2. On any failure to properly parse, a line number is now provided with the
   unexpected character error
2018-08-14 18:00:16 -04:00
Miodrag Milanovic e5006d4f2f Save settings and give nicer names to some 2018-08-10 19:11:30 +02:00
Miodrag Milanovic 61bce47f3c Use settings for json and pcf 2018-08-08 20:14:18 +02:00
David Shah 1d6ec0fb8c json: Fix message for 1'bx values
Signed-off-by: David Shah <davey1576@gmail.com>
2018-08-01 20:11:36 +02:00
Sergiusz Bazanski 85fc356fc1 clangformat 2018-08-01 03:59:27 +01:00
David Shah 95ac838654 json: Fixing ports set to 'x'
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-27 19:51:55 +02:00
David Shah e0a851976f refactor: Replace assert with NPNR_ASSERT
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-04 12:15:23 +02:00
Miodrag Milanovic 1cf8293019 Fixed macros and includes for MSVC 2018-07-03 08:53:44 +02:00
David Shah 103dde79de Fixing Python bindings after adding unique_ptr
Signed-off-by: David Shah <davey1576@gmail.com>
2018-06-26 14:13:52 +02:00
Miodrag Milanovic db890d3a81 nets and cells are unique_ptr's 2018-06-25 21:33:48 +02:00
Miodrag Milanovic 069d78ab80 add cells to a cells collection 2018-06-25 16:16:02 +02:00
Clifford Wolf fe26ce4471 Move json parser from frontend/json/ to json/
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-06-23 16:20:31 +02:00