3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-04 21:39:14 +00:00
Commit graph

16078 commits

Author SHA1 Message Date
Robert O'Callahan
a4d2022e4d
Merge 054de3c236 into dc051e98be 2025-11-01 17:24:09 -04:00
Emil J
dc051e98be
Merge pull request #5450 from YosysHQ/emil/dff-next_state-reset-pol-fix
dfflibmap: fix next_state inversion propagation for DFF flops by inve…
2025-11-01 18:13:12 +01:00
Krystine Sherwin
a243e4e60f Docs: ecp5 and nexus are under lattice 2025-11-01 07:37:58 +00:00
github-actions[bot]
4011d72656 Bump version 2025-10-30 00:24:42 +00:00
Emil J
c9a4c608ce
Merge pull request #5446 from rocallahan/avoid-moved-from
Don't recompute hash using moved-out-of value
2025-10-29 16:16:57 +01:00
Miodrag Milanović
7f6ea39507
Merge pull request #5449 from yrabbit/adc-5
Gowin. Fix GW5A ADCs.
2025-10-29 11:11:47 +01:00
YRabbit
2a3720921c Gowin. Fix GW5A ADCs.
For these primitives, Gowin decided to use a different option for
describing ports—directly in the module header, i.e.

``` verilog
module ADC(input CLK);
```

instead of
``` verilog
module ADC(CLK);
input CLK;
```

Since this one-time parser becomes too confusing, it is easier to simply
add ADC descriptions as they are from a separate file, especially since
these primitives are only available in the GW5A series.

Test:
``` shell
yosys -p "read_verilog top.v; synth_gowin -json top-synth.json -family gw5a"
```

The old version of Yosys simply won't compile the design due to the lack
of port descriptions, while the new version will compile without errors.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
2025-10-29 12:48:21 +10:00
github-actions[bot]
75eff54b31 Bump version 2025-10-29 00:24:43 +00:00
Emil J. Tywoniak
b2fe335b2d dfflibmap: fix next_state inversion propagation for DFF flops by inverting reset value polarity 2025-10-28 13:56:28 +01:00
Miodrag Milanović
3b9f06c130
Merge pull request #5447 from pu-cc/gatemate-fix-serdes-cdr
gatemate: fix SERDES CDR parameters
2025-10-28 09:54:13 +01:00
Robert O'Callahan
a27b1a83ae Don't recompute hash using moved-out-of value 2025-10-28 07:41:10 +00:00
Patrick Urban
14c1802b01 gatemate: fix SERDES CDR parameters 2025-10-27 15:47:48 +01:00
github-actions[bot]
8bc63ef6da Bump version 2025-10-26 00:25:16 +00:00
YRabbit
3956f103a9 Gowin. Handle the WRITE_MODE.
Process the WRITE_MODE in the GW5A series in a more concise manner.

You can check it in the same way as in
https://github.com/YosysHQ/yosys/pull/5440

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
2025-10-25 23:15:23 +01:00
github-actions[bot]
f5c9e122de Bump version 2025-10-24 00:21:47 +00:00
YRabbit
64700dec65 Gowin. Disable unsupported BSRAM mode in GW5A
All supported (and planned to be supported) GW5A series chips do not
support the 2: Read-before-Write write mode.

Here, we prohibit the generation of BSRAM with this mode.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
2025-10-23 09:59:56 +01:00
Miodrag Milanović
2613c1c0a9
Merge pull request #5438 from cr1901/posix-bugpoint
Add sys/wait.h header to bugpoint to bring in constants.
2025-10-22 12:40:26 +02:00
Emil J. Tywoniak
054de3c236 tests: remove unstable FPGA synthesis result checks 2025-10-21 21:21:05 +00:00
Robert O'Callahan
7371388e1d Add timing stats for IdString garbage collection 2025-10-21 21:21:05 +00:00
Robert O'Callahan
cd47727c8b Fix AbcModuleState::remap_name() to avoid calling IdString::c_str() 2025-10-21 21:21:05 +00:00
Robert O'Callahan
609da65bb4 Fix verilog backend to avoid IdString::c_str() 2025-10-21 21:21:05 +00:00
Robert O'Callahan
e4a5bd7cb2 Avoid calling IdString::c_str() in opt_clean 2025-10-21 21:21:05 +00:00
Robert O'Callahan
a534fda855 Optimize IdString operations to avoid calling c_str() 2025-10-21 21:21:05 +00:00
Robert O'Callahan
2075b3416f Make NEW_ID create IDs whose string allocation is delayed 2025-10-21 20:55:35 +00:00
Robert O'Callahan
442a969812 Ensure that new_id(_suffix)() cannot create collisions with existing IdStrings. 2025-10-21 17:44:17 +00:00
Robert O'Callahan
bf732df591 Make new_id/new_id_suffix taking string_view to avoid allocating strings 2025-10-21 17:44:17 +00:00
Robert O'Callahan
5cc3f27a5f Remove StaticIdString and just use IdString now that we can make it constexpr 2025-10-21 17:44:17 +00:00
Robert O'Callahan
3c2caffffe Make IdString refcounts a hashtable containing only the nonzero refcounts
This saves space and doesn't cost very much since we hardly ever have nonzero refcounts any more.

It also allows for IdStrings with negative indexes, which we're going to add.
2025-10-21 17:44:17 +00:00
Robert O'Callahan
bc7895505e Implement IdString garbage collection instead of refcounting. 2025-10-21 17:44:15 +00:00
Robert O'Callahan
b3f79ed8e7 Create RTLIL::OwningIdString and use it in a few places 2025-10-21 17:40:52 +00:00
Robert O'Callahan
2ca7b2f7d7 Remove YOSYS_USE_STICKY_IDS 2025-10-21 17:40:52 +00:00
Robert O'Callahan
8b8939e219 Make RTLIL::Design::get_all_designs() unconditionally defined 2025-10-21 17:40:52 +00:00
Robert O'Callahan
3a4fa325cc Remove explicit empty-string check when looking up IdStrings 2025-10-21 17:40:52 +00:00
Robert O'Callahan
d70924ace2 Store IdString lengths and use them 2025-10-21 17:40:49 +00:00
Robert O'Callahan
ae219cb8f9 Make IdString::contains take std::string_view so we avoid a strlen when the parameter is a string constant 2025-10-21 17:37:46 +00:00
Robert O'Callahan
f7ac724ea9 Make IdString::begins_width/ends_with take std::string_view so we avoid a strlen when the parameter is a string constant 2025-10-21 17:37:46 +00:00
github-actions[bot]
37875fdedf Bump version 2025-10-21 00:23:46 +00:00
William D. Jones
311a2739f6 Add sys/wait.h header to bugpoint to bring in constants. 2025-10-20 19:50:18 -04:00
Jannis Harder
f6fb423ee8
Merge pull request #5430 from YosysHQ/micko/sim_cycle_width
sim: Make cycle width small as possible and configurable
2025-10-20 18:51:32 +02:00
Jannis Harder
6a0ee6e4fb Revert sim's cycle_width default back to 10, but keep -width option 2025-10-20 14:40:05 +02:00
github-actions[bot]
1598771a37 Bump version 2025-10-19 00:26:17 +00:00
Mohamed Gaber
b510c36162 hotfix: headers mistakenly added to clean target
- fix `make clean` deleting a number of headers when ENABLE_PYOSYS is set to 1
2025-10-18 14:08:20 +01:00
github-actions[bot]
272aa9cde2 Bump version 2025-10-17 00:23:40 +00:00
Maxim Kudinov
6535995005 synth_gowin: fix help hint style 2025-10-16 11:09:28 +01:00
Maxim Kudinov
8c347826f6 synth_gowin: make help description more clear 2025-10-16 11:09:28 +01:00
Maxim Kudinov
8f6d63c082 synth_gowin: make setundef an off by default option 2025-10-16 11:09:28 +01:00
Miodrag Milanovic
f11a61b32b sim: Make cycle width small as possible and configurable 2025-10-16 11:37:44 +02:00
Miodrag Milanovic
db8c1878a0 fix dlopen using fs:path with mingw 2025-10-16 08:30:43 +02:00
github-actions[bot]
061b6ce2ad Bump version 2025-10-16 00:23:57 +00:00
Miodrag Milanović
759996b968
Merge pull request #5427 from donn/plugin_search_paths
plugins: add search paths
2025-10-15 20:02:05 +02:00