Pranav Lulu
12/20/2022, 6:06 AMTim Edwards
12/20/2022, 1:59 PMgetcell sky130_fd_sc_hvl_fill_8Pranav Lulu
12/20/2022, 2:45 PMTim Edwards
12/20/2022, 2:54 PMwriteall.Pranav Lulu
12/20/2022, 3:09 PMPranav Lulu
12/20/2022, 4:35 PMTim Edwards
12/21/2022, 2:07 AM.mag files in the location where magic was started (e.g., result of running the shell command pwd in the Tcl interpreter).
For magic, GDS is an "exported" data format. You should never go from GDS -> mag then from mag -> GDS if you don't want your data potentially altered in the process, because magic has rules for generating derived layers from GDS, and more rules for generating GDS from its layers. Those two sets of rules are not necessarily reflexive.vks
02/27/2024, 8:21 AMTim Edwards
02/27/2024, 2:50 PMcellname filepath command to change the location of the cell (then writeall to save to the new location). If you want to migrate a bunch of cells, then just copy the cells to the new location, then read everything in from the top level using load -dereference to get rid of all the original path information (then writeall to save).vks
02/27/2024, 5:12 PMMitch Bailey
02/27/2024, 5:29 PMaddpath) for mag files. In order to be portable, it is probably wise to have the cells in a subdirectory although a sister directory might work too. You can check the first use line for each cell in the resultant mag file to ensure that you do not have absolute paths.vks
02/28/2024, 1:04 PMinverter_chain.mag layout file is moved to sub-folder (inv01) in attached directory structure. inverter.mag cell layout is used inside inverter_chain.mag. Any specific points to take care?
I could not get what needs to be done with addpath or use commands as mentioned in your last reply.Mitch Bailey
02/28/2024, 1:43 PMmag file has use lines for the cell instances it contains. Some lines have the path to the mag file included like this
use sky130_fd_sc_hd__mux2_8 _16517_ $PDKPATH/libs.ref/sky130_fd_sc_hd/mag
Others don’t
use user_id_programming user_id_value
For the lines that don’t have an explicit path to the mag file, magic has an internal path search list that begins with the current directory by default.
You can modify this path using the addpath command. The path is also searched if the cell can not be found in the explicit path.
In your example, you have
inverter.mag
inv01/
+- inverter_chain.mag
One way to place the cell would be to use a ../ as an explicit directory path.
use inverter inv1 ../
Maybe you meant the other way.
inverter_chain.mag
inv01/
+- inverter.mag
where inverter_chain.mag would contain
use inverter inv1 inv01/vks
02/29/2024, 6:23 AM