bag.env
This module defines various methods to query information about the design environment.
Module Contents
Functions
|
Returns the BAG working directory. |
|
Returns the BAG temporary files directory. |
|
Returns the technology directory. |
|
Returns the BAG working directory. |
|
Returns the BAG temporary files directory. |
|
Returns the technology directory. |
|
Returns the BAG configuration dictioanry. |
|
Returns the technology parameters dictioanry. |
|
Create TechInfo object. |
|
Create RoutingGrid object. |
Create RoutingGrid object from the given config file. |
|
|
Check if we can successfully connect to a port. |
|
Read the port number from the port file.. |
|
Returns the netlist setup file path. |
|
Returns the GDS layer map file. |
|
Returns the GDS object map file. |
|
|
|
- bag.env.get_bag_work_path() pathlib.Path [source]
Returns the BAG working directory.
- bag.env.get_bag_tmp_path() pathlib.Path [source]
Returns the BAG temporary files directory.
- bag.env.get_tech_path() pathlib.Path [source]
Returns the technology directory.
- bag.env.get_tech_params(bag_config: Optional[Dict[str, Any]] = None) Dict[str, Any] [source]
Returns the technology parameters dictioanry.
- bag.env.create_tech_info(bag_config: Optional[Dict[str, Any]] = None) bag.layout.tech.TechInfo [source]
Create TechInfo object.
- bag.env.create_routing_grid(tech_info: Optional[bag.layout.tech.TechInfo] = None, bag_config: Optional[Dict[str, Any]] = None) bag.layout.routing.RoutingGrid [source]
Create RoutingGrid object.
- bag.env.create_routing_grid_from_file(config_fname: str, tech_info: Optional[bag.layout.tech.TechInfo] = None, bag_config: Optional[Dict[str, Any]] = None) bag.layout.routing.RoutingGrid [source]
Create RoutingGrid object from the given config file.
- bag.env.can_connect_to_port(port: int) bool [source]
Check if we can successfully connect to a port.
Used to check if Virtuoso server is up.
- bag.env.get_port_number(bag_config: Optional[Dict[str, Any]] = None) Tuple[int, str] [source]
Read the port number from the port file..
- Parameters:
bag_config (Optional[Dict[str, Any]]) – the BAG configuration dictionary. If None, will try to read it from file.
- Returns:
port (int) – the port number. Negative on failure.
msg (str) – Empty string on success, the error message on failure.