bag.simulation.emx

Module Contents

Classes

EMXInterface

This class handles interaction with EMX.

Functions

calculate_ind_q(→ None)

Calculate inductance and Q for given y parameter file.

class bag.simulation.emx.EMXInterface(tmp_dir: str, sim_config: Mapping[str, Any])[source]

Bases: bag.simulation.base.EmSimProcessManager

This class handles interaction with EMX.

Parameters:
  • tmp_dir (str) – temporary file directory for SimAccess.

  • sim_config (Mapping[str, Any]) – the simulation configuration dictionary.

_get_model_path(root_path: pathlib.Path, cell_name: str) pathlib.Path[source]
_set_em_option(cell_name: str, params: Mapping[str, Any], model_path: pathlib.Path) Tuple[List[str], List[pathlib.Path]][source]
async async_gen_nport(cell_name: str, gds_file: pathlib.Path, params: Mapping[str, Any], root_path: pathlib.Path, run_sim: bool = False) pathlib.Path[source]

Run EM sim to get nport for the current module.

static _set_mdl_option(cell_name: str, model_type: str, model_path: pathlib.Path) Tuple[List[str], pathlib.Path, List[pathlib.Path]][source]
async async_gen_model(cell_name: str, params: Mapping[str, Any], root_path: pathlib.Path)[source]
run_simulation(cell_name: str, gds_file: pathlib.Path, params: Mapping[str, Any], root_path: pathlib.Path) None[source]
process_output(cell_name: str, params: Mapping[str, Any], root_path: pathlib.Path) None[source]
bag.simulation.emx.calculate_ind_q(model_path: pathlib.Path, cell_name: str, center_tap: bool) None[source]

Calculate inductance and Q for given y parameter file.