Commit Graph

669 Commits

Author SHA1 Message Date
Sergiusz Bazanski
0816f447b7 Make ice40::Arch thread-safe
We move all non-chip data to be private and guard them with an R/W
mutex.

We then modify all calls that access these fields to lock/shared_lock
the mutex as required.

Profiling the code before and after is an exercise left to the reader
:).
2018-07-13 12:35:39 +01:00
Sergiusz Bazanski
309a533b7c Style. 2018-07-13 11:39:33 +01:00
Miodrag Milanovic
b5498c8a53 Fixed initial title and actions after new 2018-07-13 12:02:49 +02:00
Miodrag Milanovic
0f0259fd94 invert palette for fpga viewer 2018-07-13 11:21:49 +02:00
Miodrag Milanovic
96d862311d Add coloring per graphics element style 2018-07-13 11:03:09 +02:00
Miodrag Milanovic
8e54ac1542 Use command line parameters settings for GUI as well. 2018-07-13 09:14:48 +02:00
Sergiusz Bazanski
499951cb65 Remove legacy graphics API
For now we do not optimize the OpenGL renderer against the new decal
API, but this can be done in the future.
2018-07-12 21:30:36 +01:00
Clifford Wolf
b8a42ff53b Updates from clang-format
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-12 22:04:13 +02:00
Clifford Wolf
ad60ab2ef1 Fix ice40 wire segments in lutff complex
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-12 21:46:16 +02:00
David Shah
c732930272 Merge branch 'q3k/fix-zoom' into 'master'
Fix Zooming

See merge request SymbioticEDA/nextpnr!8
2018-07-12 19:39:08 +00:00
Sergiusz Bazanski
681d824131 Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into q3k/fix-zoom 2018-07-12 20:24:00 +01:00
Sergiusz Bazanski
284b4750ee Fix zoom in fpgawidget 2018-07-12 20:22:53 +01:00
Clifford Wolf
f9ef4cd4bd Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr 2018-07-12 21:05:18 +02:00
Clifford Wolf
4f87ea0eb6 Improve iCE40 wire database and gfx
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-12 21:05:09 +02:00
Clifford Wolf
13e7cd8681 Add GraphicElement style enum
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-12 21:04:47 +02:00
David Shah
d16d34736f ecp5/cmake: Improve error message when trellis/pytrellis not found
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-12 19:59:18 +02:00
Miodrag Milanovic
7b9b2bef3c make colors configurable, changed to gray 2018-07-12 18:03:10 +02:00
David Shah
a8a3ba2647 ecp5: Unbreaking groups
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-12 18:01:40 +02:00
Miodrag Milanovic
8a226626be changed order of scale and translate, makes it zoom at center 2018-07-12 17:38:58 +02:00
Clifford Wolf
8fde7935e7 Update README
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-12 17:22:44 +02:00
Clifford Wolf
a436035424 Add Groups API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-12 17:22:29 +02:00
Miodrag Milanovic
1245eb6343 added progress bar for future use 2018-07-12 14:54:16 +02:00
Miodrag Milanovic
24618ee800 Added python37 as well, fixes latest msys2 build and macOS 2018-07-12 14:36:28 +02:00
David Shah
9e06954edb ecp5: Improving SLICE bel
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-12 10:09:56 +02:00
Clifford Wolf
b58d665b43 Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr 2018-07-11 19:02:58 +02:00
Clifford Wolf
33e592e55e Add missing wires to ice40 gfx
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 19:02:30 +02:00
Miodrag Milanovic
93214a2fb0 disable actions and make them accesible 2018-07-11 18:48:06 +02:00
Miodrag Milanovic
ab5798e09e margins fix 2018-07-11 18:48:06 +02:00
Clifford Wolf
6ffae27aa1 Deterministic chipdb blobs
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 18:36:15 +02:00
Clifford Wolf
297a013e4d Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr 2018-07-11 18:17:52 +02:00
Clifford Wolf
9baefa2742 Fix usage of refreshUi API in generic arch
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 18:16:59 +02:00
Miodrag Milanovic
0d979b964e Fix layout 2018-07-11 18:15:25 +02:00
Clifford Wolf
7daa8524c8 Add ctx->place() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 18:15:08 +02:00
Clifford Wolf
7df67c91b3 Add ctx->route() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 18:04:09 +02:00
Clifford Wolf
e9b27860da Unflip iCE40 tile graphics
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 17:40:02 +02:00
Clifford Wolf
2a01b5e4d3 New refreshUi API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 17:02:13 +02:00
Miodrag Milanovic
77818f53bd GUI preparation for search and browse history 2018-07-11 16:20:33 +02:00
Miodrag Milanovic
09735694b2 Fixed MSVC build 2018-07-11 14:39:42 +02:00
David Shah
35216298d5 ecp5: Update arch to use new graphics API
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 14:27:15 +02:00
Clifford Wolf
ce6afb5f7f Merge branch 'ice40gfx' into 'master'
Ice40gfx

See merge request SymbioticEDA/nextpnr!7
2018-07-11 12:04:53 +00:00
Clifford Wolf
7081cca016 Add GUI Decals API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-11 14:03:23 +02:00
Miodrag Milanovic
0d71ed76cb reversed Y coordinate in gui 2018-07-11 11:53:24 +02:00
David Shah
75fda0fa59 Add ECP5 notes to README
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 11:15:29 +02:00
David Shah
a70f5ce109 Merge branch 'ecp5' into 'master'
Adding ECP5 support

See merge request SymbioticEDA/nextpnr!5
2018-07-11 09:09:18 +00:00
David Shah
bcc63091fb ecp5: New libtrellis tile lookup API
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 11:08:12 +02:00
David Shah
6601adf760 cmake: Post-rebase ecp5 fixes
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 10:44:06 +02:00
David Shah
eac5a6dbd8 ecp5: Blinky tweaks
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 10:42:09 +02:00
David Shah
610adfef7e ecp5: Make blinky more fancy
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 10:42:09 +02:00
David Shah
9a2e8caf1c ecp5: Buttons working
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 10:42:09 +02:00
David Shah
1830c9372e ecp5: *** Blinky working ***
Signed-off-by: David Shah <davey1576@gmail.com>
2018-07-11 10:42:09 +02:00