Ross Schlaikjer
3aecb3b08c
No need to fetch context
2020-04-07 14:44:19 -04:00
Ross Schlaikjer
fc591421f9
Change assert to error
2020-04-07 14:42:27 -04:00
Ross Schlaikjer
e46b990251
Rearrange bool algebra
2020-04-07 14:31:17 -04:00
Ross Schlaikjer
3257bdc8a1
Actually just move all the logic to ArchInfo
2020-04-07 14:11:49 -04:00
Ross Schlaikjer
0bdf1e05f1
Extract regmode configuration to ArchInfo
2020-04-07 14:03:55 -04:00
Ross Schlaikjer
c007463168
Change timing database lookup based on REGMODE value
2020-04-07 13:48:21 -04:00
David Shah
e8933f8519
Merge pull request #419 from garytwong/handle-opendrain
...
Handle OPENDRAIN attribute.
2020-04-07 09:44:40 +01:00
David Shah
571ad7d604
Merge pull request #421 from garytwong/fix-lpf-locate-assertion-failure
...
Fix assertion failure on invalid LOCATE input.
2020-04-07 09:44:22 +01:00
Gary Wong
ec1eea9990
Fix assertion failure on invalid LOCATE input.
...
Trying to parse this invalid LPF syntax:
LOCATE COMP "a" SITE "A1"
IOBUF PORT "a" IO_TYPE=LVCMOS33;
(note missing semicolon on first line) gives an assertion failure in
strip_quotes, because the fifth token is scanned as "A1"IOBUF (without
a trailing quote).
Avoid the problem by detecting extraneous input and issuing a more
specific error.
2020-04-05 21:42:45 -06:00
David Shah
70ccab4765
Merge pull request #420 from ironsteel/fix-reporting-of-default-router
...
command.cc: Use correct constant for default router
2020-04-04 09:13:27 +01:00
Rangel Ivanov
ef4a699b72
command.cc: Use correct constant for default router
...
Otherwise --help reports that the default router is heap
Signed-off-by: Rangel Ivanov <rangelivanov88@gmail.com>
2020-04-04 10:39:29 +03:00
Gary Wong
31e9fffadd
Handle OPENDRAIN attribute.
2020-04-03 17:59:19 -06:00
David Shah
f9a76c56f7
ecp5: Allow use of IDDRXN and ODDRXN type primitives on the same pin
...
Signed-off-by: David Shah <dave@ds0.me>
2020-04-03 09:53:14 +01:00
David Shah
f09dfb028a
Merge pull request #418 from garytwong/usrmclk-works
...
Remove comment about the USRMCLK primitive being untested.
2020-04-03 08:31:26 +01:00
Gary Wong
8cc6a2fae5
Remove comment about the USRMCLK primitive being untested.
...
Tested and verified working: the trivial configuration:
module USRMCLK( USRMCLKI, USRMCLKTS );
input USRMCLKI, USRMCLKTS;
endmodule
module top( input clk );
reg[ 24:0 ] count = 0;
always @( posedge clk ) begin
count <= count + 1'b1;
end
USRMCLK mspi( .USRMCLKI( count[ 20 ] ), .USRMCLKTS( count[ 24 ] ) );
endmodule
produces the expected output (toggling at high frequency, toggling
tri-state at lower frequency) on an LFE5U-85 when fed with an appropriate
clock. See https://bayimg.com/AAnNKAAGO for an example. The top
(magenta) trace is the MCLK line.
2020-04-02 21:35:35 -06:00
David Shah
38efbf5dea
Merge pull request #417 from hackfin/master
...
Enum/int compatibility for EHXPLLL parameters
2020-04-02 16:28:35 +01:00
Martin
707289c8d6
Enum/int compatibility for EHXPLLL parameters
...
- Lattice component EHXPLLL parameter compatibility, allowing to
pass an int parameter for the enum (as expected by trellis tile)
e.g. CLKOP_TRIM_DELAY : integer := 0;
2020-04-02 14:25:00 +02:00
David Shah
98e2f9ea81
ice40: Derive oscillator frequency constraints
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-29 21:02:16 +01:00
David Shah
3d3b222e2a
Merge pull request #415 from smunaut/fix_iob_oe_reg
...
ice40: Fix output register timing analysis for registered output enable
2020-03-29 09:53:06 +01:00
Sylvain Munaut
bd68d6035c
ice40: Fix output register timing analysis for registered output enable
...
Wrong bits were being tested. [5:4] is what's controlling the output
enable path.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-03-29 10:27:42 +02:00
David Shah
a3ede0293a
Merge pull request #410 from YosysHQ/ecp5-12k
...
ecp5: Proper support for '12k' device
2020-03-25 09:46:21 +00:00
David Shah
4b54253c24
router2: Prevent overflow
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-22 21:17:59 +00:00
David Shah
a621e04062
ice40: Always copy DFF attrs to LC
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-19 21:35:31 +00:00
David Shah
d20ce45c1b
Merge branch 'master' of ssh.github.com:YosysHQ/nextpnr
2020-03-17 10:07:29 +00:00
David Shah
564f40f6db
timing: Improve robustness to dangling/undriven logic
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-17 10:07:21 +00:00
David Shah
54b15ed201
Replace assertion failure with error
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-13 11:35:09 +00:00
David Shah
3b49c20f43
ecp5: Proper support for '12k' device
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-13 11:22:11 +00:00
David Shah
bb73580209
Merge pull request #400 from YosysHQ/dave/tri-fixes
...
Improve handling of unused inout port bits
2020-03-10 13:50:59 +00:00
David Shah
751f4556fd
ecp5: Fix differential inputs
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-08 11:32:34 +00:00
David Shah
7ac1735395
Merge pull request #406 from gojimmypi/patch-1
...
Update README with TRELLIS_INSTALL_PREFIX example
2020-03-06 15:22:45 +00:00
David Shah
af7be21591
Improve handling of unflattened netlists
...
Signed-off-by: David Shah <dave@ds0.me>
2020-03-06 15:21:28 +00:00
gojimmypi
b4aaae2c5f
update README TRELLIS_INSTALL_PREFIX example
...
`TRELLIS_INSTALL_PREFIX` will tell `next-pnr` to look in both `share` and `lib` directories.
See https://github.com/YosysHQ/nextpnr/pull/406#discussion_r387945570
2020-03-04 13:39:33 -08:00
gojimmypi
050cb6914f
Update README TRELLIS_INSTALL_PREFIX example
...
per https://github.com/YosysHQ/nextpnr/pull/406#discussion_r387937313 it is not an install directory
2020-03-04 13:25:47 -08:00
gojimmypi
5a26e0f0d3
Update README with TRELLIS_INSTALL_PREFIX example
...
see https://github.com/YosysHQ/nextpnr/pull/404 and https://github.com/SymbiFlow/prjtrellis/pull/123
2020-03-04 13:10:48 -08:00
David Shah
a957e90396
Merge pull request #405 from smunaut/fix_key_error
...
pycontainers: Properly handle KeyErrors
2020-03-04 07:22:37 +00:00
David Shah
c06827cd50
Merge pull request #404 from smunaut/fix_prefix_default
...
build: Default the ECP5 and iCE40 roots to the install prefix
2020-03-04 07:21:36 +00:00
Sylvain Munaut
4a9981ee77
pycontainers: Properly handle KeyErrors
...
We raise a C++ exception to abort the rest of the execution of
the function.
At the same time we standardize on using a throw runtime error as the
method to avoid warning when not returning values. (some places
used this throw and some other used std::terminate)
Fixes #403
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-03-04 00:12:45 +01:00
Sylvain Munaut
054be6fb67
build: Default the ECP5 and iCE40 roots to the install prefix
...
If the user specifies a custom install prefix, chances are icestrom/trellis
are also in that prefix rather than the hardcoded /usr/local
Fixes #351
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-03-03 15:32:10 +01:00
Miodrag Milanovic
5fa10e1a95
cleanup
2020-02-28 11:02:07 +01:00
Miodrag Milanovic
6566b5da73
Add support for pasting multiline code to python
2020-02-28 11:02:01 +01:00
Miodrag Milanović
7e54d2c305
Merge pull request #402 from zyp/fix_sort
...
gui: Fix sorting order in TreeModel.
2020-02-28 07:42:34 +01:00
Vegard Storheil Eriksen
34cc1bd41f
gui: Fix sorting order in TreeModel.
2020-02-28 03:56:33 +01:00
Vegard Storheil Eriksen
bb754441c8
gui: Fix undefined behavior in TreeModel.
...
std::sort() requires the comparison function to return false for even
comparison. Returning true results in undefined behavior and a potential
segfault.
2020-02-28 03:48:41 +01:00
Miodrag Milanovic
3e95c57317
Add SVG option to gui
2020-02-27 09:37:09 +01:00
David Shah
9aa22433ff
Improve handling of unused inout port bits
...
Signed-off-by: David Shah <dave@ds0.me>
2020-02-25 14:26:47 +00:00
David Shah
affb12cc27
Merge pull request #398 from YosysHQ/svg
...
svg: Basic SVG graphics rendering
2020-02-15 23:34:50 +00:00
David Shah
b6158f94f6
svg: Basic SVG graphics rendering
...
Signed-off-by: David Shah <dave@ds0.me>
2020-02-15 11:35:51 +00:00
David Shah
e0b4f0ee63
Merge pull request #393 from YosysHQ/dave/xilinx-place-backport
...
Backporting some placer changes from nextpnr-xilinx
2020-02-13 11:39:31 +00:00
Miodrag Milanović
bb8af6ff8b
Merge pull request #394 from laanwj/2020_02_cmake
...
Correct BUILD_TESTS description in CMakeLists.txt
2020-02-12 19:15:40 +01:00
Wladimir J. van der Laan
d570163116
Correct BUILD_TESTS description in CMakeLists.txt
2020-02-12 13:44:22 +00:00