From e13c30352519ebb0c9c06a2af9f5f122776bc9d1 Mon Sep 17 00:00:00 2001 From: Gwins7 Date: Thu, 11 Apr 2024 15:49:33 +0800 Subject: [PATCH] modify .conf file name --- Makefile | 8 ++++---- src/main/scala/top/TopMain.scala | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index df4443d..6e68e84 100644 --- a/Makefile +++ b/Makefile @@ -48,11 +48,11 @@ $(TOP_V): $(SCALA_FILE) # FOR FPGA RUNNING sed -i '/\/\/ ----- 8< ----- FILE "firrtl_black_box_resource_files\.f" ----- 8< -----/,$$d' $@ sed -n -e '/\/\/ ----- 8< ----- FILE "\.\/DifftestRunaheadEvent\.v" ----- 8< -----/,$$p' $@ > ./build/DifftestRunaheadEvent.v sed -i '/\/\/ ----- 8< ----- FILE "\.\/DifftestRunaheadEvent\.v" ----- 8< -----/,$$d' $@ - sed -n -e '/\/\/ ----- 8< ----- FILE ".*\.conf" ----- 8< -----/,$$p' $@ > $@.conf + sed -n -e '/\/\/ ----- 8< ----- FILE "ext_mem\.conf" ----- 8< -----/,$$p' $@ > ./build/ext_mem.conf sed -i '/\/\/ ----- 8< ----- FILE "metadata\/seq_mems\.json" ----- 8< -----/,$$d' $@ - sed -i '1,2d' $@.conf - sed -i '$$d' $@.conf - ./scripts/vlsi_mem_gen $@.conf >> $@ + sed -i '1,2d' ./build/ext_mem.conf + sed -i '$$d' ./build/ext_mem.conf + ./scripts/vlsi_mem_gen ./build/ext_mem.conf >> $@ @git log -n 1 >> .__head__ @git diff >> .__diff__ @sed -i 's/^/\/\// ' .__head__ diff --git a/src/main/scala/top/TopMain.scala b/src/main/scala/top/TopMain.scala index 4fc837b..784cb69 100644 --- a/src/main/scala/top/TopMain.scala +++ b/src/main/scala/top/TopMain.scala @@ -77,7 +77,7 @@ object TopMain extends App { :+ FirtoolOption("--disable-annotation-unknown") :+ FirtoolOption("--lowering-options=noAlwaysComb,disallowPackedArrays,disallowLocalVariables") :+ FirtoolOption("-repl-seq-mem") - :+ FirtoolOption("--repl-seq-mem-file=TopMain.v.conf") + :+ FirtoolOption("--repl-seq-mem-file=ext_mem.conf") ) } }