When i am instantiating the devices : and saving them , they are saved as hierarchical magic cells ,...
r
When i am instantiating the devices : and saving them , they are saved as hierarchical magic cells , and the cells are also dumped as *mag files .Is there any way to avoid this once i have finished the layout ? Should i flatten the cells ? rw-rw-r-- 1 ratul619 ratul619 1819 May 1 20:29 sky130_fd_pr__nfet_01v8_7VZ9PK.mag -rw-rw-r-- 1 ratul619 ratul619 1819 Apr 27 22:39 sky130_fd_pr__nfet_01v8_7XH9PK.mag -rw-rw-r-- 1 ratul619 ratul619 1188 May 1 20:29 sky130_fd_pr__nfet_01v8_FNPZCM.mag -rw-rw-r-- 1 ratul619 ratul619 1150 May 1 20:29 sky130_fd_pr__pfet_01v8_2ZVKGK.mag -rw-rw-r-- 1 ratul619 ratul619 1446 May 1 20:29 sky130_fd_pr__pfet_01v8_M4PKGK.mag
t
I have been pondering this question for a while. I think I would like to have some single file to hold all the parameterized layouts to avoid the explosion of cells for the typical analog layout. A reasonably good way to keep everything fairly clean is to create a subdirectory (call it, let's say, "primitives") and move all those paramterized layout cells there. Then either add the command "addpath primitives" to the .magicrc file, or else you can start magic, issue the command "addpath primitives", then read in the design, then do "writeall force" to have magic write out the files with the correct references to the subdirectory, after which you don't need the "addpath" command again.
1
r
Thanks let me try to use this techniq