Skip to content

Commit 6f03648

Browse files
committed
fix: fix Sky130 inverter example and VSCode plugin
1 parent fb3a81a commit 6f03648

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/compiler/examples/sky130_inverter/lib.ar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cell inverter(nw: Float, pw: Float) {
2-
let ndiff = rect("diff.drawing", x0=0., y0=0., y1=nw + nw);
2+
let ndiff = rect("diff.drawing", x0=0., y0=0., y1=nw);
33
let poly = rect("poly.drawing", y0=ndiff.y0-130.);
44
eq(poly.x0 + poly.x1, ndiff.x0 + ndiff.x1);
55
eq(poly.x1 - poly.x0, 150.);
@@ -55,7 +55,7 @@ cell inverter(nw: Float, pw: Float) {
5555

5656
let nwell = rect("nwell.drawing", x0=ntap.x0-180., x1=ntap.x1+180., y0=pdiff.y0-180., y1=ntap.y1+180.);
5757

58-
let licon = rect("licon1.drawing", x0=0., x1=170., y0=0., y1=170.);
58+
let licon = crect(layer="licon1.drawing", x0=0., x1=170., y0=0., y1=170.);
5959
let cons = crect(x0=vdd_s.x0, x1=vdd_s.x1, y0=pdiff.y0+40., y1=pdiff.y1-40.);
6060
#scope1 std::center_rects(cons, #scope0 std::max_array(licon, cons.w, cons.h, 340., 340.));
6161
let cons = crect(x0=vout.x0, x1=vout.x1, y0=pdiff.y0+40., y1=pdiff.y1-40.);

core/compiler/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,9 @@ mod tests {
470470
})
471471
.collect::<IndexMap<_, _>>();
472472
for rect in cell.objects.iter().filter_map(|obj| obj.1.get_rect()) {
473+
if rect.construction {
474+
continue;
475+
}
473476
if let Some(layer) = &rect.layer {
474477
let (layer, datatype) = layers[&layer.as_str()];
475478
let x0 = rect.x0.0 as i32;

0 commit comments

Comments
 (0)