Skip to content

Commit

Permalink
Merge pull request #1 from MarioOpenHWGroup/dev_dd_pgo
Browse files Browse the repository at this point in the history
SLEC/LEC scripts updates
  • Loading branch information
MarioOpenHWGroup authored Feb 21, 2024
2 parents 92b8040 + 29ccf9b commit b8314b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions scripts/slec/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if [ -z "${REF_REPO}" ]; then
print_log "Empty REF_REPO env variable"
REF_REPO=https://github.com/openhwgroup/cv32e40p.git
REF_FOLDER=ref_design
REF_BRANCH=master
REF_BRANCH=cv32e40p_v1.0.0
print_log " * Setting REF_REPO ${REF_REPO}"
print_log " * Setting REF_FOLDER ${REF_FOLDER}"
print_log " * Setting REF_BRANCH ${REF_BRANCH}"
Expand All @@ -79,6 +79,7 @@ if [[ -z "${TOP_MODULE}" ]]; then
print_log "Empty TOP_MODULE env variable"
TOP_MODULE=cv32e40p_core
print_log " * Setting TOP_MODULE ${TOP_MODULE}"
export top_module=${TOP_MODULE}
fi

if [ ! -d ./reports/ ]; then
Expand All @@ -105,14 +106,14 @@ GOLDEN_FLIST=$(pwd)/golden.src

var_golden_rtl=$(awk '{ if ($0 ~ "{DESIGN_RTL_DIR}" && $0 !~ "#" && $0 !~ "tracer" && $0 !~ "wrapper") print $0 }' ${GOLDEN_DIR}/$FLIST | sed 's|${DESIGN_RTL_DIR}|'"${GOLDEN_DIR}"'/rtl/|')

var_revised_rtl=$(awk '{ if ($0 ~ "{DESIGN_RTL_DIR}" && $0 !~ "#" && $0 !~ "tracer" && $0 !~ "wrapper") print $0 }' ${REVISED_DIR}/$FLIST | sed 's|${DESIGN_RTL_DIR}|'"${REVISED_DIR}"'/rtl/|')
var_revised_rtl=$(awk '{ if ($0 ~ "{DESIGN_RTL_DIR}" && $0 !~ "#" && $0 !~ "tracer" && $0 !~ "wrapper" && $0 !~ "_top") print $0 }' ${REVISED_DIR}/$FLIST | sed 's|${DESIGN_RTL_DIR}|'"${REVISED_DIR}"'/rtl/|')

print_log "Generating GOLDEN flist in path: ${GOLDEN_FLIST}"
echo $var_golden_rtl > ${GOLDEN_FLIST}
print_log "Generating REVISED flist in path: ${REVISED_FLIST}"
echo $var_revised_rtl > ${REVISED_FLIST}

export report_dir=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))/reports/$(date +%Y-%m-%d)/
export report_dir=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))/reports/$(date +%Y-%m-%d)/${target_tool}

if [[ -d ${report_dir} ]]; then
rm -rf ${report_dir}
Expand All @@ -138,7 +139,7 @@ if [[ "${target_tool}" == "cadence" ]]; then
elif [[ "${target_tool}" == "synopsys" ]]; then

if [[ "${target_process}" == "lec" ]]; then
fm_shell -work_path $report_dir/work/ -f ${tcl_script} | tee ${output_log}
fm_shell -work_path ${report_dir} -f ${tcl_script} | tee ${output_log}
regex_string="Verification SUCCEEDED"
elif [[ "${target_process}" == "sec" ]]; then
not_implemented ${target_tool} ${target_process}
Expand Down
2 changes: 1 addition & 1 deletion scripts/slec/synopsys/lec.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set_top r:/WORK/$top_module
read_sverilog -container i -libname WORK -12 -f revised.src
set_top i:/WORK/$top_module

match > ./reports/match.rpt
match > $summary_log.match.rpt

if {"$top_module" == "cv32e40p_core"} {
set_dont_verify_point -type port i:WORK/cv32e40p_core/apu_req_o
Expand Down

0 comments on commit b8314b8

Please sign in to comment.