Skip to content

Commit 766c039

Browse files
authored
Merge pull request #2847 from GaloisInc/rgs/yosys-cell-parameters-ints
`yosys_import`: Support JSON produced with `-compat-int`
2 parents 5578665 + fe4c3e4 commit 766c039

File tree

8 files changed

+597
-2
lines changed

8 files changed

+597
-2
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ This release supports [version
280280
* Fix a bug that would cause SAW to crash when verifying a `mir_return`
281281
statement returning a `Vec` that was allocated in a postcondition.
282282

283+
* Fix a bug that would cause `yosys_import` to fail to parse JSON files
284+
produced using Yosys's `-compat-int` flag.
285+
283286
# Version 1.4 -- 2025-11-18
284287

285288
This release supports [version

intTests/test2846/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
GHDL?=ghdl
2+
YOSYS?=yosys
3+
4+
all: test.json
5+
6+
test.json: test.vhd
7+
$(GHDL) -a $<
8+
$(YOSYS) -p 'ghdl add4; write_json -compat-int test.json'
9+
$(MAKE) tidy
10+
11+
.PHONY: tidy
12+
tidy:
13+
rm -f *.o work-obj93.cf
14+
15+
.PHONY: destroy
16+
destroy: tidy
17+
rm -f *.json
18+
19+
# "clean" does nothing here; just make sure it exists.
20+
# "clean" is for removing test run results, and we don't
21+
# incur any just by having test blobs.
22+
#
23+
# Unfortunately, it looks like we need a dummy rule with an invocation
24+
# of true to keep gmake from getting upset.
25+
.PHONY: clean
26+
clean:
27+
@true

0 commit comments

Comments
 (0)