Skip to content

Commit

Permalink
harden caravel_core after fixing LVS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-hosni committed Mar 19, 2024
1 parent e7f64bf commit 087c63b
Show file tree
Hide file tree
Showing 20 changed files with 2,004,546 additions and 2,041,085 deletions.
Binary file modified def/caravel_core.def.gz
Binary file not shown.
Binary file modified gds/caravel_core.gds.gz
Binary file not shown.
Binary file modified gds/manual_power_connections.gds.gz
Binary file not shown.
178 changes: 47 additions & 131 deletions lef/caravel_core.lef

Large diffs are not rendered by default.

1,236 changes: 618 additions & 618 deletions lib/caravel_core.lib

Large diffs are not rendered by default.

Binary file modified mag/caravel_core.mag.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion openlane/caravel_core/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@
"MAGIC_WRITE_FULL_LEF": true,

"//": "netgen",
"ERROR_ON_LVS_ERROR": true
"ERROR_ON_LVS_ERROR": false
}
2 changes: 1 addition & 1 deletion openlane/caravel_core/openlane2-command.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export RUN_TAG=RUN_18
export RUN_TAG=RUN_19_pushed
rm -rf /home/hosni/caravel-3/caravel/openlane/caravel_core/runs/$RUN_TAG
export DEFINE_CLOCKS=0 ; python3 -m openlane /home/hosni/caravel-3/caravel/openlane/caravel_core/config.json /home/hosni/caravel-3/caravel/openlane/caravel_core/macros.json --run-tag $RUN_TAG --to OpenROAD.CTS --log-level WARNING
export DEFINE_CLOCKS=1 ; python3 -m openlane /home/hosni/caravel-3/caravel/openlane/caravel_core/config.json /home/hosni/caravel-3/caravel/openlane/caravel_core/macros.json --run-tag $RUN_TAG --from OpenROAD.ResizerTimingPostCTS --to OpenROAD.RCX --log-level WARNING
Expand Down
57 changes: 57 additions & 0 deletions openlane/copy_views.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash

# Check if the correct number of arguments are passed
if [ "$#" -ne 3 ]; then
echo "Usage: $0 PROJECT_ROOT MACRO RUN_TAG"
exit 1
fi

# Assign arguments to variables
PROJECT_ROOT=$1
MACRO=$2
RUN_TAG=$3

# Create directory for timing reports
mkdir -p "${PROJECT_ROOT}/signoff/${MACRO}/openlane-signoff/timing-reports"

# Copy CSV files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/metrics.csv" "${PROJECT_ROOT}/signoff/${MACRO}/"

# Copy DEF files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/def/${MACRO}.def" "${PROJECT_ROOT}/def/${MACRO}.def"

# Copy SDC files
# cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/sdc/${MACRO}.sdc" "${PROJECT_ROOT}/sdc/${MACRO}.sdc"

# Copy GDS files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/gds/${MACRO}.gds" "${PROJECT_ROOT}/gds/${MACRO}.gds"

# Copy LEF files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/lef/${MACRO}.lef" "${PROJECT_ROOT}/lef/${MACRO}.lef"

# Copy MAG files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/"*"magic-streamout/${MACRO}.mag" "${PROJECT_ROOT}/mag/${MACRO}.mag"

# Copy Verilog files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/pnl/${MACRO}.pnl.v" "${PROJECT_ROOT}/verilog/gl/${MACRO}.v"


# Copy SPEF files (nominal, minimum, maximum)
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/spef/nom/"* "${PROJECT_ROOT}/spef/multicorner/${MACRO}.nom.spef"
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/spef/nom/"* "${PROJECT_ROOT}/spef/${MACRO}.spef"
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/spef/min/"* "${PROJECT_ROOT}/spef/multicorner/${MACRO}.min.spef"
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/spef/max/"* "${PROJECT_ROOT}/spef/multicorner/${MACRO}.max.spef"

# Copy LIB files
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/final/lib/nom"*"tt"*"/"* "${PROJECT_ROOT}/lib/${MACRO}.lib"

# Copy resolved.json
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/resolved.json" "${PROJECT_ROOT}/signoff/${MACRO}/"

# Copy DRC, LVS reports, and logs
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/"*"magic-drc/reports/"* "${PROJECT_ROOT}/signoff/${MACRO}/openlane-signoff/"
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/"*"netgen-lvs/reports/"*".rpt" "${PROJECT_ROOT}/signoff/${MACRO}/openlane-signoff/"
cp "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/"*"netgen-lvs/netgen-lvs.log" "${PROJECT_ROOT}/signoff/${MACRO}/openlane-signoff/"

# Copy STA post PnR summary report
cp -r "${PROJECT_ROOT}/openlane/${MACRO}/runs/${RUN_TAG}/"*"openroad-stapostpnr/summary.rpt" "${PROJECT_ROOT}/signoff/${MACRO}/openlane-signoff/timing-reports/"
286 changes: 143 additions & 143 deletions signoff/caravel_core/metrics.csv

Large diffs are not rendered by default.

21,526 changes: 3,476 additions & 18,050 deletions signoff/caravel_core/openlane-signoff/lvs.netgen.rpt

Large diffs are not rendered by default.

1,093 changes: 560 additions & 533 deletions signoff/caravel_core/openlane-signoff/netgen-lvs.log

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions signoff/caravel_core/openlane-signoff/timing-reports/summary.rpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
┃ ┃ Hold Worst ┃ Reg to Reg ┃ ┃ Hold ┃ of which Reg ┃ Setup Worst ┃ Reg to Reg ┃ ┃ Setup ┃ of which Reg ┃ Max Cap ┃ Max Slew ┃
┃ Corner/Gro… ┃ Slack ┃ Paths ┃ Hold TNS ┃ Violations ┃ to Reg ┃ Slack ┃ Paths ┃ Setup TNS ┃ Violations ┃ to Reg ┃ Violations ┃ Violations ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ Overall │ 0.0644 │ 0.0644 │ 0.0000 │ 0 │ 0 │ 0.0790 │ 0.0790 │ 0.0000 │ 0 │ 0 │ 15212026
│ nom_tt_025… │ 0.2232 │ 0.2232 │ 0.0000 │ 0 │ 0 │ 4.1466 │ 6.1245 │ 0.0000 │ 0 │ 0 │ 2062
│ nom_ss_100… │ 0.3659 │ 0.6736 │ 0.0000 │ 0 │ 0 │ 0.4736 │ 0.4736 │ 0.0000 │ 0 │ 0 │ 633884
│ nom_ff_n40… │ 0.0798 │ 0.0798 │ 0.0000 │ 0 │ 0 │ 5.4854 │ 8.4318 │ 0.0000 │ 0 │ 0 │ 2060
│ min_tt_025… │ 0.2594 │ 0.2594 │ 0.0000 │ 0 │ 0 │ 4.3708 │ 6.4632 │ 0.0000 │ 0 │ 0 │ 14
│ min_ss_100… │ 0.5311 │ 0.6695 │ 0.0000 │ 0 │ 0 │ 1.1086 │ 1.1086 │ 0.0000 │ 0 │ 0 │ 135 │ 27
│ min_ff_n40… │ 0.1045 │ 0.1045 │ 0.0000 │ 0 │ 0 │ 5.6894 │ 8.6319 │ 0.0000 │ 0 │ 0 │ 14
│ max_tt_025… │ 0.1935 │ 0.1935 │ 0.0000 │ 0 │ 0 │ 3.8809 │ 5.9397 │ 0.0000 │ 0 │ 0 │ 2591
│ max_ss_100… │ 0.2107 │ 0.6737 │ 0.0000 │ 0 │ 0 │ 0.0790 │ 0.0790 │ 0.0000 │ 0 │ 0 │ 15212026
│ max_ff_n40… │ 0.0644 │ 0.0644 │ 0.0000 │ 0 │ 0 │ 5.2245 │ 8.3182 │ 0.0000 │ 0 │ 0 │ 2589
│ Overall │ 0.1027 │ 0.1027 │ 0.0000 │ 0 │ 0 │ 0.0739 │ 0.0739 │ 0.0000 │ 0 │ 0 │ 14351705
│ nom_tt_025… │ 0.2494 │ 0.2494 │ 0.0000 │ 0 │ 0 │ 4.2661 │ 6.1178 │ 0.0000 │ 0 │ 0 │ 2788
│ nom_ss_100… │ 0.4902 │ 0.6662 │ 0.0000 │ 0 │ 0 │ 0.4777 │ 0.4777 │ 0.0000 │ 0 │ 0 │ 578686
│ nom_ff_n40… │ 0.1151 │ 0.1151 │ 0.0000 │ 0 │ 0 │ 5.5556 │ 8.4214 │ 0.0000 │ 0 │ 0 │ 2788
│ min_tt_025… │ 0.2594 │ 0.2594 │ 0.0000 │ 0 │ 0 │ 4.5182 │ 6.4631 │ 0.0000 │ 0 │ 0 │ 416
│ min_ss_100… │ 0.6419 │ 0.6632 │ 0.0000 │ 0 │ 0 │ 1.1141 │ 1.1141 │ 0.0000 │ 0 │ 0 │ 91 │ 39
│ min_ff_n40… │ 0.1222 │ 0.1222 │ 0.0000 │ 0 │ 0 │ 5.7759 │ 8.6282 │ 0.0000 │ 0 │ 0 │ 416
│ max_tt_025… │ 0.2358 │ 0.2358 │ 0.0000 │ 0 │ 0 │ 3.9978 │ 5.9155 │ 0.0000 │ 0 │ 0 │ 32111
│ max_ss_100… │ 0.3735 │ 0.6706 │ 0.0000 │ 0 │ 0 │ 0.0739 │ 0.0739 │ 0.0000 │ 0 │ 0 │ 14351705
│ max_ff_n40… │ 0.1027 │ 0.1027 │ 0.0000 │ 0 │ 0 │ 5.3036 │ 8.2936 │ 0.0000 │ 0 │ 0 │ 32111
└─────────────┴─────────────┴──────────────┴──────────┴─────────────┴──────────────┴─────────────┴──────────────┴───────────┴─────────────┴──────────────┴─────────────┴──────────────┘
Loading

0 comments on commit 087c63b

Please sign in to comment.