Skip to content

Commit

Permalink
connect sel/selb appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Sep 28, 2024
1 parent e0a0cab commit 1834e43
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/blocks/tgatemux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,24 @@ impl Component for TappedTGateMux {
idx: 0,
..self.params
};
let gate = ctx.instantiate::<TGateMux>(&params)?;
let mut gate_flipped = ctx.instantiate::<TGateMux>(&params)?;
gate_flipped.reflect_horiz_anchored();
let tap = ctx.instantiate::<TGateMuxEnd>(&params)?;
let mut tap_flipped = ctx.instantiate::<TGateMuxEnd>(&params)?;
tap_flipped.reflect_horiz_anchored();
let mut tiler = ArrayTiler::builder()
.push(tap)
.push(gate.clone())
.push(gate_flipped.clone())
.push(gate)
.push(gate_flipped)
let mut tiler = ArrayTiler::builder();
tiler.push(tap);

for i in 0..4 {
let params = TGateMuxParams {
idx: i,
..self.params
};
let mut gate = ctx.instantiate::<TGateMux>(&params)?;
if i % 2 != 0 {
gate.reflect_horiz_anchored();
}
tiler.push(gate);
}
let mut tiler = tiler
.push(tap_flipped)
.mode(AlignMode::ToTheRight)
.alt_mode(AlignMode::Bottom)
Expand Down

0 comments on commit 1834e43

Please sign in to comment.