Skip to content

Commit

Permalink
change dir structure, make new job for temp-sense sims
Browse files Browse the repository at this point in the history
  • Loading branch information
chetanyagoyal committed Dec 5, 2023
1 parent f3abf5e commit 35dc71d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 3 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
6 changes: 4 additions & 2 deletions .github/scripts/parse_rpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
elif len(sys.argv) > 1:
if sys.argv[1] == 'sky130hvl_ldo':
_generator_is['sky130hvl_ldo'] = 1
elif sys.argv[1] == 'sky130hd_temp_full':
_generator_is['sky130hd_temp'] = 1
else:
_generator_is['sky130XX_cryo'] = 1

Expand Down Expand Up @@ -114,11 +116,11 @@
else:
print("Flow check failed!")

if len(sys.argv) == 1:
if len(sys.argv) > 1 and sys.argv[1] == "sky130hd_temp_full":
sim_state_filename = "work/sim_state_file.txt"
result_filename = "work/prePEX_sim_result"

template_filename = "../../../.github/scripts/expected_sim_outputs/prePEX_sim_result"
template_filename = "../../../.github/scripts/expected_sim_outputs/temp-sense-gen/prePEX_sim_result"
with open(result_filename) as f2, open(template_filename) as f1:
content1 = f2.readlines()
content2 = f1.readlines()
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/tempSense_sky130hd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,29 @@ jobs:
cp ./.github/scripts/parse_rpt.py ./openfasoc/generators/temp-sense-gen/. &&\
pip3 install -r requirements.txt &&\
cd ./openfasoc/generators/temp-sense-gen &&\
make sky130hd_temp_full &&\
make sky130hd_temp &&\
python3 parse_rpt.py
" && exit_code=$? | tee -a file.log
if [ $? -ne 0 ]; then exit 1; fi
if grep "\[ERROR\]" file.log; then exit 1; else exit 0; fi
- name: Test sky130hd Temp sensor simulations
env:
IMAGE_NAME: msaligane/openfasoc:stable
run: |
cd $GITHUB_WORKSPACE
touch sim_file.log
docker run --rm \
-v $PWD:$PWD\
-w $PWD\
$IMAGE_NAME\
bash -c "\
cp ./.github/scripts/parse_rpt.py ./openfasoc/generators/temp-sense-gen/. &&\
pip3 install -r requirements.txt &&\
cd ./openfasoc/generators/temp-sense-gen &&\
make clean &&\
make sky130hd_temp_full &&\
python3 parse_rpt.py sky130hd_temp_full
" && exit_code=$? | tee -a file.log
if [ $? -ne 0 ]; then exit 1; fi
if grep "\[ERROR\]" file.log; then exit 1; else exit 0; fi

0 comments on commit 35dc71d

Please sign in to comment.