From 3e668ab0554e316b103d9b59d8d8b3d926ad1bd0 Mon Sep 17 00:00:00 2001 From: Ned Bingham Date: Thu, 18 Apr 2024 10:19:05 -0400 Subject: [PATCH] flipping the cell so pmos is on top --- deps/ruler | 2 +- floret/Circuit.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ruler b/deps/ruler index 553e410..e039d6f 160000 --- a/deps/ruler +++ b/deps/ruler @@ -1 +1 @@ -Subproject commit 553e410357ec623fe74366314211087bef8e4520 +Subproject commit e039d6fdf6d08262be259b39b2f8072f9bc722c3 diff --git a/floret/Circuit.cpp b/floret/Circuit.cpp index 9c8d229..88dfed5 100644 --- a/floret/Circuit.cpp +++ b/floret/Circuit.cpp @@ -529,7 +529,7 @@ int Circuit::pinHeight(Index p) const { } void Circuit::draw(Layout &dst) { - vec2i dir(1,1); + vec2i dir(1,-1); dst.name = name; dst.nets.reserve(nets.size()); @@ -565,7 +565,7 @@ void Circuit::draw(Layout &dst) { } } - dst.push(tech.wires[pinLevel], Rect(pin.outNet, vec2i(pin.pos, bottom), vec2i(pin.pos+width, top))); + dst.push(tech.wires[pinLevel], Rect(pin.outNet, vec2i(pin.pos, bottom)*dir, vec2i(pin.pos+width, top)*dir)); } }