Skip to content

Commit

Permalink
print path
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanku committed Oct 26, 2023
1 parent 7d3332e commit 4696289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/src/sim/spectre.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fn spectre_can_save_paths_with_flattened_instances() {
\"#",
name = "res",
fmt = "inline-spice",
pdk = "Sky130Pdk"
pdk = "Spectre"
))]
pub struct ScirResistor;

Expand All @@ -294,8 +294,7 @@ fn spectre_can_save_paths_with_flattened_instances() {
io: &<<Self as Block>::Io as SchematicType>::Bundle,
cell: &mut CellBuilder<Spectre>,
) -> substrate::error::Result<Self::NestedData> {
let mut subcell = cell.sub_builder::<Sky130Pdk>();
let res1 = subcell.instantiate_connected(ScirResistor, io);
let res1 = cell.instantiate_connected(ScirResistor, io);
let res = cell.instantiate_connected(Resistor::new(dec!(200)), io);
let raw_res = cell.instantiate(RawInstance::with_params(
arcstr::literal!("resistor"),
Expand Down
1 change: 1 addition & 0 deletions tools/spectre/src/tran.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ impl<T> Save<Spectre, Tran, T> for TranCurrent {

impl HasSimData<str, Vec<f64>> for TranOutput {
fn get_data(&self, k: &str) -> Option<&Vec<f64>> {
println!("{}", k);
self.raw_values.get(k).map(|x| x.as_ref())
}
}
Expand Down

0 comments on commit 4696289

Please sign in to comment.