Skip to content

Commit

Permalink
Run par-to-seq with options, clean up script
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakayorihiro committed Sep 24, 2024
1 parent 9d918d2 commit 0af42a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/profiler/get-profile-counts-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ fi
mkdir -p ${TMP_DIR} ${LOGS_DIR}
rm -f ${TMP_DIR}/* ${LOGS_DIR}/* # remove data from last run

CALYX_ARGS=" -p static-inline -p compile-static -p compile-repeat -p par-to-seq -x par-to-seq:always-sequentialize -p no-opt"


# Run TDCC to get the FSM info
echo "[${SCRIPT_NAME}] Obtaining FSM info from TDCC"
(
cd ${CALYX_DIR}
set -o xtrace
cargo run -- ${INPUT_FILE} -p compile-repeat -p par-to-seq -x par-to-seq:always-sequentialize -p no-opt -x tdcc:dump-fsm-json="${FSM_JSON}" # -p par-to-seq
cargo run -- ${INPUT_FILE} ${CALYX_ARGS} -x tdcc:dump-fsm-json="${FSM_JSON}" # -p par-to-seq
set +o xtrace
) &> ${LOGS_DIR}/gol-tdcc

Expand All @@ -78,7 +80,7 @@ fi
echo "[${SCRIPT_NAME}] Obtaining VCD file via simulation"
(
set -o xtrace
fud2 ${INPUT_FILE} -o ${VCD_FILE} --through verilator -s calyx.args='-p compile-repeat -p par-to-seq -x par-to-seq:always-sequentialize -p no-opt' -s sim.data=${SIM_DATA_JSON} # -p par-to-seq
fud2 ${INPUT_FILE} -o ${VCD_FILE} --through verilator -s calyx.args='${CALYX_ARGS}' -s sim.data=${SIM_DATA_JSON} # -p par-to-seq
set +o xtrace
) &> ${LOGS_DIR}/gol-vcd

Expand Down

0 comments on commit 0af42a9

Please sign in to comment.