Skip to content

Commit 85ce387

Browse files
Tom Robertstomeroberts
authored andcommitted
[syn] Update path to prim_assert
- Also remove unsigned keyword stripping which is no longer required Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
1 parent bfa531c commit 85ce387

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

formal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OUTDIR := build
1414
# Source directory relative to this Makefile
1515
SRC_DIR := ../rtl
1616
# Include directory relative to this Makefile
17-
INC_DIR := ../shared/rtl
17+
INC_DIR := ../vendor/lowrisc_ip/prim/rtl
1818

1919
# SystemVerilog sources of Ibex
2020
SRCS_SV ?= $(SRC_DIR)/ibex_alu.sv \

syn/syn_yosys.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,9 @@ for file in ../rtl/*.sv; do
3131
sv2v \
3232
--define=SYNTHESIS \
3333
../rtl/*_pkg.sv \
34-
-I../shared/rtl \
34+
-I../vendor/lowrisc_ip/prim/rtl \
3535
$file \
3636
> $LR_SYNTH_OUT_DIR/generated/${module}.v
37-
38-
# TODO: eventually remove below hack. It removes "unsigned" from params
39-
# because Yosys doesn't support unsigned parameters
40-
sed -i 's/parameter unsigned/parameter/g' $LR_SYNTH_OUT_DIR/generated/${module}.v
41-
sed -i 's/localparam unsigned/localparam/g' $LR_SYNTH_OUT_DIR/generated/${module}.v
42-
sed -i 's/reg unsigned/reg/g' $LR_SYNTH_OUT_DIR/generated/${module}.v
4337
done
4438

4539
# remove generated *pkg.v files (they are empty files and not needed)

0 commit comments

Comments
 (0)