mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-23 21:47:20 -04:00
[syn] Update path to prim_assert
- Also remove unsigned keyword stripping which is no longer required Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
This commit is contained in:
parent
bfa531c039
commit
85ce3874eb
2 changed files with 2 additions and 8 deletions
|
@ -14,7 +14,7 @@ OUTDIR := build
|
|||
# Source directory relative to this Makefile
|
||||
SRC_DIR := ../rtl
|
||||
# Include directory relative to this Makefile
|
||||
INC_DIR := ../shared/rtl
|
||||
INC_DIR := ../vendor/lowrisc_ip/prim/rtl
|
||||
|
||||
# SystemVerilog sources of Ibex
|
||||
SRCS_SV ?= $(SRC_DIR)/ibex_alu.sv \
|
||||
|
|
|
@ -31,15 +31,9 @@ for file in ../rtl/*.sv; do
|
|||
sv2v \
|
||||
--define=SYNTHESIS \
|
||||
../rtl/*_pkg.sv \
|
||||
-I../shared/rtl \
|
||||
-I../vendor/lowrisc_ip/prim/rtl \
|
||||
$file \
|
||||
> $LR_SYNTH_OUT_DIR/generated/${module}.v
|
||||
|
||||
# TODO: eventually remove below hack. It removes "unsigned" from params
|
||||
# because Yosys doesn't support unsigned parameters
|
||||
sed -i 's/parameter unsigned/parameter/g' $LR_SYNTH_OUT_DIR/generated/${module}.v
|
||||
sed -i 's/localparam unsigned/localparam/g' $LR_SYNTH_OUT_DIR/generated/${module}.v
|
||||
sed -i 's/reg unsigned/reg/g' $LR_SYNTH_OUT_DIR/generated/${module}.v
|
||||
done
|
||||
|
||||
# remove generated *pkg.v files (they are empty files and not needed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue