mirror of https://github.com/XS-MLVP/picker.git
32 lines
1.0 KiB
Bash
Executable File
32 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script is used to release the XDummyCache library.
|
|
|
|
# run cache codegen
|
|
rm -rf picker_out/CacheCFG
|
|
# Use file list and explicit sname to locate top module in list
|
|
./build/bin/picker export --autobuild false --rw mem_direct \
|
|
--sname Cache \
|
|
--tname CacheCFG \
|
|
--fs example/CacheSignalCFG/Cache.txt \
|
|
-w cache.vcd --sim verilator --tdir ./picker_out/ $@
|
|
|
|
if [[ $@ == *"python"* ]]; then
|
|
cp example/CacheSignalCFG/example.py picker_out/CacheCFG/python/
|
|
elif [[ $@ == *"java"* ]]; then
|
|
cp example/CacheSignalCFG/example.java picker_out/CacheCFG/java/
|
|
elif [[ $@ == *"scala"* ]]; then
|
|
cp example/CacheSignalCFG/example.scala picker_out/CacheCFG/scala/
|
|
elif [[ $@ == *"golang"* ]]; then
|
|
cp example/CacheSignalCFG/example.go picker_out/CacheCFG/golang/
|
|
elif [[ $@ == *"lua"* ]]; then
|
|
cp example/CacheSignalCFG/example.lua picker_out/CacheCFG/lua/
|
|
else
|
|
cp example/CacheSignalCFG/example.cpp picker_out/CacheCFG/cpp/
|
|
fi
|
|
|
|
cd picker_out/CacheCFG && make EXAMPLE=ON
|
|
|
|
|
|
# --autobuild true: auto build and test
|