main branch of the tool appears to delete the cara...
# shuttle
m
main branch of the tool appears to delete the caravel sub directory and then falls over
d
Did you updated precheck git & docker ? My pre-check works in ubuntu 20.4 , I am using make run-precheck command
Copy code
dinesha@lenovo-i3-10100-07IMB05:~/workarea/opencore/git/logic_bist$ make run-precheck
cd /home/dinesha/workarea/efabless/open_mpw_precheck && \
docker run -e INPUT_DIRECTORY=/home/dinesha/workarea/opencore/git/logic_bist -e PDK_ROOT=/opt/pdk -e CARAVEL_ROOT=/home/dinesha/workarea/efabless/MPW-4/caravel -v /home/dinesha/workarea/efabless/open_mpw_precheck:/home/dinesha/workarea/efabless/open_mpw_precheck -v /home/dinesha/workarea/opencore/git/logic_bist:/home/dinesha/workarea/opencore/git/logic_bist -v /opt/pdk:/opt/pdk -v /home/dinesha/workarea/efabless/MPW-4/caravel:/home/dinesha/workarea/efabless/MPW-4/caravel \
-u 1000:1002 efabless/mpw_precheck:latest bash -c "cd /home/dinesha/workarea/efabless/open_mpw_precheck ; python3 mpw_precheck.py --pdk_root /opt/pdk --input_directory /home/dinesha/workarea/opencore/git/logic_bist --caravel_root /home/dinesha/workarea/efabless/MPW-4/caravel"
{{EXTRACTING GDS}} Extracting GDS files in: /home/dinesha/workarea/opencore/git/logic_bist
{{Project GDS Info}} user_project_wrapper: 979b83b54e415a21ab0950b52bba1aae8824fa89
{{Tools Info}} KLayout: v0.27.5 | Magic: v8.3.241
{{PDKs Info}} Open PDKs: 14db32aa8ba330e88632ff3ad2ff52f4f4dae1ad | Skywater PDK: b5ff6174d9aa921f670f12a2893969fe4a516f6c
{{START}} Precheck Started, the full log 'precheck.log' will be located in '/home/dinesha/workarea/opencore/git/logic_bist/precheck_results/21_DEC_2021___14_16_09/logs'
{{PRECHECK SEQUENCE}} Precheck will run the following checks: License Manifest Makefile Default Documentation Consistency XOR Magic DRC Klayout FEOL Klayout BEOL Klayout Offgrid Klayout Metal Minimum Clear Area Density Klayout Pin Label Purposes Overlapping Drawing Klayout ZeroArea
{{STEP UPDATE}} Executing Check 1 of 14: License
An approved LICENSE (Apache-2.0) was found in /home/dinesha/workarea/opencore/git/logic_bist.
{{MAIN LICENSE CHECK PASSED}} An approved LICENSE was found in project root.
An approved LICENSE (Apache-2.0) was found in /home/dinesha/workarea/opencore/git/logic_bist.
{{SUBMODULES LICENSE CHECK PASSED}} No prohibited LICENSE file(s) was found in project submodules
m
thanks. I just tried those makefile rules and got the same result. It deletes the caravel directory and then fails
d
@User i have pulled your project https://github.com/mattvenn/zero_to_asic_mpw4.git and rebase the caravel folder and all pre-check passing for me
Copy code
dinesha@lenovo-i3-10100-07IMB05:~/temp/zero_to_asic_mpw4$ make run-precheck
cd /home/dinesha/workarea/efabless/open_mpw_precheck && \
docker run -e INPUT_DIRECTORY=/home/dinesha/temp/zero_to_asic_mpw4 -e PDK_ROOT=/opt/pdk -e CARAVEL_ROOT=/home/dinesha/temp/zero_to_asic_mpw4/caravel -v /home/dinesha/workarea/efabless/open_mpw_precheck:/home/dinesha/workarea/efabless/open_mpw_precheck -v /home/dinesha/temp/zero_to_asic_mpw4:/home/dinesha/temp/zero_to_asic_mpw4 -v /opt/pdk:/opt/pdk -v /home/dinesha/temp/zero_to_asic_mpw4/caravel:/home/dinesha/temp/zero_to_asic_mpw4/caravel \
-u 1000:1002 efabless/mpw_precheck:latest bash -c "cd /home/dinesha/workarea/efabless/open_mpw_precheck ; python3 mpw_precheck.py --pdk_root /opt/pdk --input_directory /home/dinesha/temp/zero_to_asic_mpw4 --caravel_root /home/dinesha/temp/zero_to_asic_mpw4/caravel"
{{EXTRACTING GDS}} Extracting GDS files in: /home/dinesha/temp/zero_to_asic_mpw4
{{Project GDS Info}} user_project_wrapper: 1a865abb3eaec00801e7fdd95dc6bf467c6770bd
{{Tools Info}} KLayout: v0.27.5 | Magic: v8.3.241
{{PDKs Info}} Open PDKs: 14db32aa8ba330e88632ff3ad2ff52f4f4dae1ad | Skywater PDK: b5ff6174d9aa921f670f12a2893969fe4a516f6c
{{START}} Precheck Started, the full log 'precheck.log' will be located in '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_26_46/logs'
{{PRECHECK SEQUENCE}} Precheck will run the following checks: License Manifest Makefile Default Documentation Consistency XOR Magic DRC Klayout FEOL Klayout BEOL Klayout Offgrid Klayout Metal Minimum Clear Area Density Klayout Pin Label Purposes Overlapping Drawing Klayout ZeroArea
{{STEP UPDATE}} Executing Check 1 of 14: License
An approved LICENSE (Apache-2.0) was found in /home/dinesha/temp/zero_to_asic_mpw4.
{{MAIN LICENSE CHECK PASSED}} An approved LICENSE was found in project root.
An approved LICENSE (Apache-2.0) was found in /home/dinesha/temp/zero_to_asic_mpw4.
{{SUBMODULES LICENSE CHECK PASSED}} No prohibited LICENSE file(s) was found in project submodules
{{SPDX COMPLIANCE CHECK FAILED}} Found 59 non-compliant file(s) with the SPDX Standard.
SPDX COMPLIANCE: NON-COMPLIANT FILE(S) PREVIEW: ['/home/dinesha/temp/zero_to_asic_mpw4/Makefile', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/outputs/__user_project_wrapper.v', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/outputs/defines.v', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/outputs/reports/magic_drc_check.drc.report', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/xor_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/klayout_beol_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/klayout_offgrid_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/tools.info', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/klayout_feol_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/pdks.info', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/klayout_pin_label_purposes_overlapping_drawing_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/klayout_zeroarea_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/klayout_met_min_ca_density_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/magic_drc_check.total', '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_21_32/logs/gds.info']
For the full SPDX compliance report check: /home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_26_46/logs/spdx_compliance_report.log
{{STEP UPDATE}} Executing Check 2 of 14: Manifest
Caravel version matches, for the full report check: /home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_26_46/logs/manifest_check.log
{{MANIFEST CHECKS PASSED}} Manifest Checks Passed. Caravel version matches.
{{STEP UPDATE}} Executing Check 3 of 14: Makefile
{{MAKEFILE CHECK PASSED}} Makefile valid.
{{STEP UPDATE}} Executing Check 4 of 14: Default
{{README DEFAULT CHECK PASSED}} Project 'README.md' was modified and is not identical to the default 'README.md'
{{CONTENT DEFAULT CHECK PASSED}} Project 'gds' was modified and is not identical to the default 'gds'
{{STEP UPDATE}} Executing Check 5 of 14: Documentation
{{DOCUMENTATION CHECK PASSED}} Project documentation is appropriate.
{{STEP UPDATE}} Executing Check 6 of 14: Consistency
Trying to get file <https://raw.githubusercontent.com/efabless/caravel/dd71e938ce85d7e877b8213d5405457f2ea15ae9/verilog/rtl/__user_project_wrapper.v>
Got file <https://raw.githubusercontent.com/efabless/caravel/dd71e938ce85d7e877b8213d5405457f2ea15ae9/verilog/rtl/__user_project_wrapper.v>
Trying to get file <https://raw.githubusercontent.com/efabless/caravel/dd71e938ce85d7e877b8213d5405457f2ea15ae9/verilog/rtl/defines.v>
Got file <https://raw.githubusercontent.com/efabless/caravel/dd71e938ce85d7e877b8213d5405457f2ea15ae9/verilog/rtl/defines.v>
HIERARCHY CHECK PASSED: Module user_project_wrapper is instantiated in caravel. 
COMPLEXITY CHECK PASSED: Netlist caravel contains at least 8 instances (90 instances). 
MODELING CHECK PASSED: Netlist caravel is structural.
SUBMODULE HOOKS CHECK PASSED: All module ports for user_project_wrapper are correctly connected in the top level netlist caravel.
POWER CONNECTIONS CHECK PASSED: All instances in caravel are connected to power
{{NETLIST CONSISTENCY CHECK PASSED}} caravel netlist passed all consistency checks.
PORTS CHECK PASSED: Netlist user_project_wrapper ports match the golden wrapper ports
COMPLEXITY CHECK PASSED: Netlist user_project_wrapper contains at least 1 instances (2 instances). 
MODELING CHECK PASSED: Netlist user_project_wrapper is structural.
LAYOUT CHECK PASSED: The GDS layout for user_project_wrapper matches the provided structural netlist.
POWER CONNECTIONS CHECK PASSED: All instances in user_project_wrapper are connected to power
PORT TYPES CHECK PASSED: Netlist user_project_wrapper port types match the golden wrapper port types.
{{NETLIST CONSISTENCY CHECK PASSED}} user_project_wrapper netlist passed all consistency checks.
{{CONSISTENCY CHECK PASSED}} The user netlist and the top netlist are valid.
{{STEP UPDATE}} Executing Check 7 of 14: XOR
Trying to get file <https://raw.githubusercontent.com/efabless/caravel/dd71e938ce85d7e877b8213d5405457f2ea15ae9/gds/user_project_wrapper_empty.gds.gz>
Got file <https://raw.githubusercontent.com/efabless/caravel/dd71e938ce85d7e877b8213d5405457f2ea15ae9/gds/user_project_wrapper_empty.gds.gz>
{XOR CHECK UPDATE} Total XOR differences: 0, for more details view /home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_26_46/outputs/user_project_wrapper.xor.gds
{{XOR CHECK PASSED}} The GDS file has no XOR violations.
{{STEP UPDATE}} Executing Check 8 of 14: Magic DRC
Found 0 violations
0 DRC violations
{{MAGIC DRC CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{STEP UPDATE}} Executing Check 9 of 14: Klayout FEOL
No DRC Violations found
{{Klayout FEOL CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{STEP UPDATE}} Executing Check 10 of 14: Klayout BEOL
No DRC Violations found
{{Klayout BEOL CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{STEP UPDATE}} Executing Check 11 of 14: Klayout Offgrid
No DRC Violations found
{{Klayout Offgrid CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{STEP UPDATE}} Executing Check 12 of 14: Klayout Metal Minimum Clear Area Density
No DRC Violations found
{{Klayout Metal Minimum Clear Area Density CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{STEP UPDATE}} Executing Check 13 of 14: Klayout Pin Label Purposes Overlapping Drawing
No DRC Violations found
{{Klayout Pin Label Purposes Overlapping Drawing CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{STEP UPDATE}} Executing Check 14 of 14: Klayout ZeroArea
No DRC Violations found
{{Klayout ZeroArea CHECK PASSED}} The GDS file, user_project_wrapper.gds, has no DRC violations.
{{FINISH}} Executing Finished, the full log 'precheck.log' can be found in '/home/dinesha/temp/zero_to_asic_mpw4/precheck_results/21_DEC_2021___14_26_46/logs'
{{SUCCESS}} All Checks Passed !!!
m
thanks
yes it passes on efabless site too
I don't konw what's wrong on my local setup
this is what happens to me:
image.png
d
can you cross-check the pre-check git version
Copy code
commit 06871253dd0404be5e3c5ab4b56ebad8d11b2953 (HEAD -> main, origin/main, origin/HEAD)
Merge: 2350434 e55db35
Author: Jeff DiCorpo <42048757+jeffdi@users.noreply.github.com>
Date:   Fri Dec 17 16:12:20 2021 -0800

    Merge pull request #104 from efabless/EF-3303
    
    Sync with ef platform changes
In my mpw_precheck.py file Line: 80 I have uncompress_gds(precheck_config['input_directory']) command, in your screen shows as install_caravel(...)
m
I'm on 8cb5258fe05c6c1a92dd420df43bd726394f4337
which is after running make precheck
d
I have shared pre-check git version not the caravel version
m
that commit is the precheck version
probably my caravel_user_project is on the wrong version
d
Are you pull latest pre-check from https://github.com/efabless/mpw_precheck.git