From 532055e0455b8e22a8e0e9e6f9896b67b7d2dba5 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 26 Aug 2022 18:04:57 -0700 Subject: [PATCH] app: multi-core-inverter: define a few more sims trying to strike the right balance between coupling conductivity and decay time. --- .../multi_core_inverter/src/main.rs | 50 +++++++++++++++++-- 1 file changed, 46 insertions(+), 4 deletions(-) diff --git a/crates/applications/multi_core_inverter/src/main.rs b/crates/applications/multi_core_inverter/src/main.rs index 84c756e..7203956 100644 --- a/crates/applications/multi_core_inverter/src/main.rs +++ b/crates/applications/multi_core_inverter/src/main.rs @@ -297,6 +297,8 @@ fn main() { sy: um(400), sz: um(280), }; + // TODO: use a deque, with push_front and push_back + let deferred = || {}; // add to this to schedule sims at a lower priority // let drive_map = drive_map_5_core_inv(ClockState::HoldLow, ClockState::ReleaseLow); // let drive_map = drive_map_isolated_inv(); // let drive_map = drive_map_isolated_inv_square(); @@ -330,7 +332,7 @@ fn main() { .with_ctl_conductivity(1e6) .with_coupling_conductivity(1e6) ); - let deferred = || run_sim( + run_sim( "35-320ns-24000ps-1e7A", drive_map_isolated_inv(), params @@ -441,7 +443,7 @@ fn main() { .with_coupling_conductivity(1e7) ); run_sim( - "46-40ns-4000ps-2e9A-1e4pctl-1e6pcpl", + "46-80ns-4000ps-2e9A-1e4pctl-1e6pcpl", drive_map_isolated_inv(), params .with_clock_phase_duration(ps(80000)) @@ -470,7 +472,7 @@ fn main() { .with_ctl_conductivity(1e6) .with_coupling_conductivity(1e4) ); - let deferred = || {deferred(); run_sim( + run_sim( "49-80ns-4000ps-2e10A-1e3pctl-1e6pcpl", drive_map_isolated_inv(), params @@ -479,7 +481,7 @@ fn main() { .with_input_magnitude(2e10) .with_ctl_conductivity(1e3) .with_coupling_conductivity(1e6) - )}; + ); run_sim( "50-80ns-4000ps-1e10A-1e3pctl-1e6pcpl", drive_map_isolated_inv(), @@ -520,6 +522,46 @@ fn main() { .with_ctl_conductivity(1e3) .with_coupling_conductivity(5e6) ); + let deferred = || { deferred(); run_sim( + "54-320ns-4000ps-2e9A-1e4pctl-2e6pcpl", + drive_map_isolated_inv(), + params + .with_clock_phase_duration(ps(320000)) + .with_clock_decay(ps(4000)) + .with_input_magnitude(2e9) + .with_ctl_conductivity(1e4) + .with_coupling_conductivity(2e6) + )}; + run_sim( + "55-80ns-4000ps-2e9A-1e4pctl-1e5pcpl", + drive_map_isolated_inv(), + params + .with_clock_phase_duration(ps(80000)) + .with_clock_decay(ps(4000)) + .with_input_magnitude(2e9) + .with_ctl_conductivity(1e4) + .with_coupling_conductivity(1e5) + ); + run_sim( + "56-80ns-4000ps-2e9A-1e4pctl-5e5pcpl", + drive_map_isolated_inv(), + params + .with_clock_phase_duration(ps(80000)) + .with_clock_decay(ps(4000)) + .with_input_magnitude(2e9) + .with_ctl_conductivity(1e4) + .with_coupling_conductivity(5e5) + ); + let deferred = || { deferred(); run_sim( + "57-320ns-4000ps-5e10A-1e3pctl-5e6pcpl", + drive_map_isolated_inv(), + params + .with_clock_phase_duration(ps(320000)) + .with_clock_decay(ps(4000)) + .with_input_magnitude(5e10) + .with_ctl_conductivity(1e3) + .with_coupling_conductivity(5e6) + )}; deferred(); }