Skip to content

Commit

Permalink
fix TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanku committed Oct 15, 2024
1 parent 182bfd2 commit 78f5479
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pdks/sky130_common_pdk/src/mos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ impl Sky130Pdk {
let line = gate_bbox.height();
let space = POLY_SPACE;
let total_contact_len = nf as i64 * line + (nf as i64 - 1) * space;
// TODO: Should be gridded.
let contact_span = Span::from_center_span(gate_span.center(), total_contact_len);
let contact_span = Span::from_center_span_gridded(
gate_span.center(),
total_contact_len,
ctx.pdk().layout_grid(),
);

let mut npc_boxes = Vec::new();

Expand Down

0 comments on commit 78f5479

Please sign in to comment.