Skip to content

Commit f219968

Browse files
committed
Merge branch 'main' of github.com:substrate-labs/substrate
2 parents 09b01ce + cd74215 commit f219968

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

substrate/src/data.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -655,14 +655,15 @@ impl SubstrateCtx {
655655
params: &T::Params,
656656
work_dir: impl AsRef<Path>,
657657
pex_netlist_path: impl Into<PathBuf>,
658+
ground_net: &str,
658659
) -> Result<PexOutput>
659660
where
660661
T: Component,
661662
{
662663
let work_dir = work_dir.as_ref();
663664

664665
with_err_context(
665-
self._write_pex::<T>(params, work_dir, pex_netlist_path),
666+
self._write_pex::<T>(params, work_dir, pex_netlist_path, ground_net),
666667
|| {
667668
ErrorContext::Task(arcstr::format!(
668669
"running PEX in working directory {:?}",
@@ -677,6 +678,7 @@ impl SubstrateCtx {
677678
params: &T::Params,
678679
work_dir: impl AsRef<Path>,
679680
pex_netlist_path: impl Into<PathBuf>,
681+
ground_net: &str,
680682
) -> Result<PexOutput>
681683
where
682684
T: Component,
@@ -701,6 +703,7 @@ impl SubstrateCtx {
701703
source_cell_name: cell_name,
702704
pex_netlist_path: pex_netlist_path.into(),
703705
opts: HashMap::new(),
706+
ground_net: ground_net.to_string(),
704707
})
705708
}
706709

substrate/src/verification/pex/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ pub struct PexInput {
2828
pub pex_netlist_path: PathBuf,
2929
/// Unstructured options.
3030
pub opts: HashMap<ArcStr, ArcStr>,
31+
/// The name of the ground net.
32+
pub ground_net: String,
3133
}
3234

3335
/// An enumeration describing the high-level result of a PEX run.

0 commit comments

Comments
 (0)