John Kustin
05/27/2021, 10:06 PMchecks/
and to be honest, couldn't get much from them except there's exactly 1 discrepancy. I couldn't see anything on the .png
either.
Since the full_log.log
is quite long, here's a snippet of the relevant section:
Step 4 done without fatal errors.
Executing Step 5 of 6: Executing XOR Consistency Checks.
Running XOR Checks...
Total XOR differences = 1
XOR Checks on GDS Failed, Reason: XOR Differences count is 1. Please view /tmp/kustinj/ee272bclone/caravel_user_project_analog/checks/*.xor.* for more details.
TEST FAILED AT STEP 5
I've opened up the .xor.gds, selected the top cell (XOR), and tried to select any paint and could select none.
Specifically, what does
XOR differences: 1
"_output" in: xor.drc:41
Elapsed: 0.010s
mean?Tim Edwards
05/28/2021, 12:13 AMJohn Kustin
05/28/2021, 12:14 AMJohn Kustin
05/28/2021, 12:15 AMJohn Kustin
05/30/2021, 4:46 PM.xor.gds
file. When I try to read in the gds I get:
Error while reading cell "XOR" (byte position 43570): Unknown layer/datatype in boundary, layer=81 type=14
John Kustin
05/30/2021, 4:49 PMmagic ../caravel_user_project_analog/checks/user_analog_project_wrapper.xor.gds &
tech load ../open_pdks/sky130A/libs.tech/magic/sky130A-GDS.tech
File -> Read GDS -> ../caravel_user_project_analog/checks/user_analog_project_wrapper.xor.gds
Tim Edwards
05/30/2021, 5:15 PMJohn Kustin
05/30/2021, 5:38 PMmagic -T ../open_pdks/sky130A/libs.tech/magic/sky130A-GDS.tech ../caravel_user_project_analog/checks/user_analog_project_wrapper.xor.gds &
and I get an (UNNAMED)
cell view.John Kustin
05/30/2021, 5:41 PMmagic &
tech load ../open_pdks/sky130A/libs.tech/magic/sky130A-GDS.tech
File -> Read GDS -> ../caravel_user_project_analog/checks/user_analog_project_wrapper.xor.gds
and now I see the XOR cell.
The other layers are: MET2 MET3 BOUNDJohn Kustin
05/30/2021, 5:43 PMJohn Kustin
05/30/2021, 6:37 PMmake xor-analog-wrapper
I get an XOR result w/ 0 differences, which is different than what I get after running make run-precheck
. Am I failing to update the relevant gds files in the proper directories? Right now I have moved my gds to caravel_user_project_analog/gds
and caravel_user_project_analog/caravel/gds
John Kustin
05/30/2021, 6:44 PM.xor.gds
produced by run-precheck
in klayout and the visible layers are 69/20, 70/20, 81/14, 235/4.
How should I interpret this result / go about fixing it?John Kustin
05/30/2021, 6:48 PMJohn Kustin
05/30/2021, 6:50 PMuser_analog_project_wrapper_empty.mag
, so the pads should have no issue with them, right? Maybe I messed them up during my layout?Tim Edwards
05/30/2021, 6:52 PMJohn Kustin
05/30/2021, 6:58 PMJohn Kustin
05/30/2021, 7:08 PMwb_clk_i
and a box of the offending area in the XOR is drawn over my layout here:John Kustin
05/30/2021, 7:09 PMTim Edwards
05/30/2021, 7:14 PMJohn Kustin
05/30/2021, 7:15 PMTim Edwards
05/30/2021, 7:15 PMManar Abdelatty
05/31/2021, 1:39 PM235/4
layer is the pr.Boundary, I think it is missing from your design because you don't have the FIXED_BBOX property in the mag file https://github.com/efabless/caravel_user_project_analog/blob/main/mag/user_analog_project_wrapper.mag#L2304. I think the other differences could be caused if you don't have an origin of (0,0). You can check on the origin by running set bbox [box values]
in magic. If the lower x and lower y values aren't 0 0, you can move the origin by running the following:
set bbox [box values]
set offset_x [lindex $bbox 0]
set offset_y [lindex $bbox 1]
move origin [expr {$offset_x/2}] [expr {$offset_y/2}]
property FIXED_BBOX [box values]
John Kustin
05/31/2021, 5:34 PMuser_analog_project_wrapper.mag
and found it does have the FIXED_BBOX property:
<< properties >>
string FIXED_BBOX 0 0 584000 704000
<< end >>
The bbox initially had its lower left corner at -800i, -800i. I followed your steps and now the FIXED_BBOX property shows
{FIXED_BBOX 0 0 585600 705600}
I tried the precheck once more and I still get mismatches. I will add that it seems odd for me to change something like the origin when I start from the provided user_analog_project_wrapper_empty.mag
. Thanks for your suggestions though!Tim Edwards
05/31/2021, 8:29 PMcaravel_user_project_analog
repository, and the FIXED_BBOX values for the user_analog_project_wrapper_empty.mag
layout are 0 0 292000 352000
(this is scaled by 1/2 from what Manar posted for user_analog_project_wrapper.mag
due to a scalefactor of 2 at the top of the file, so they are equivalent). There is no offset at the corner.John Kustin
06/01/2021, 4:53 AMTim Edwards
06/01/2021, 1:03 PMuser_analog_project_wrapper_empty
cell from the caravel
repository and overlay it on your design and see if the pins align. It's possible that somehow part of your layout got shifted, in which case moving the origin back to zero won't make things any better. You could also just drop a fresh copy of the empty wrapper into your design and then splice your design into it (carefully). This assumes that the problem originated in your layout. The evidence points to that but it is by no means certain, so you might not want to do something quite so radical until we're certain of that.John Kustin
06/01/2021, 4:14 PM