Score
0
Watch 1 Star 0 Fork 1

码云极速下载 / lowRISCVerilog

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/lowrisc/lowrisc-chip
lowRISC 目的是开发一个完全开放的硬件平台,从处理器到开发版 spread retract

Clone or download
Makefrag-build 1.46 KB
Copy Edit Web IDE Raw Blame History
# See LICENSE for license details.
#--------------------------------------------------------------------
# Build Verilog
#--------------------------------------------------------------------
$(generated_dir)/$(MODEL).$(CONFIG).sv: $(chisel_srcs)
cd $(base_dir) && mkdir -p $(generated_dir) && $(SBT) "run $(CHISEL_ARGS) --configDump --noInlineMem"
cd $(generated_dir) && \
if [ -a $(MODEL).$(CONFIG).conf ]; then \
$(mem_gen) $(generated_dir)/$(MODEL).$(CONFIG).conf >> $(generated_dir)/$(MODEL).$(CONFIG).sv; \
fi
$(generated_dir)/consts.vh: $(generated_dir)/$(MODEL).$(CONFIG).sv
echo "\`ifndef CONST_VH" > $@
echo "\`define CONST_VH" >> $@
sed -r 's/\(([A-Za-z0-9_]+),([A-Za-z0-9_]+)\)/ `define \1 '\''d\2/' \
$(generated_dir)/$(MODEL).$(CONFIG).prm >> $@
echo "\`endif // CONST_VH" >> $@
$(generated_dir)/dev_map.vh: $(generated_dir)/$(MODEL).$(CONFIG).sv
echo "\`ifndef DEV_MAP_VH" > $@
echo "\`define DEV_MAP_VH" >> $@
sed -r 's/#define ([A-Za-z0-9_]+) 0x([A-Za-z0-9_]+)/ `define \1 '\''h\2/' \
$(generated_dir)/$(MODEL).$(CONFIG).dev_map.h >> $@
echo "\`endif // DEV_MAP_VH" >> $@
$(generated_dir)/dev_map.h: $(generated_dir)/$(MODEL).$(CONFIG).sv
echo "#ifndef DEV_MAP_HEADER" > $@
echo "#define DEV_MAP_HEADER" >> $@
sed -r 's/#define ([A-Za-z0-9_]+) 0x([A-Za-z0-9_]+)/ #define \1 0x\2llu/' \
$(generated_dir)/$(MODEL).$(CONFIG).dev_map.h >> $@
echo "#endif // DEV_MAP_HEADER" >> $@
# emacs local variable
# Local Variables:
# mode: makefile
# End:

Comment ( 0 )

Sign in for post a comment

Verilog
1
https://gitee.com/mirrors/lowRISC.git
git@gitee.com:mirrors/lowRISC.git
mirrors
lowRISC
lowRISC
master

Help Search