Hi all, 1. How can I move a box and its content in...
# magic
m
Hi all, 1. How can I move a box and its content in Magic? 2. How can I cut and paste what’s inside a box somewhere else in Magic? 3. How can I copy and paste what’s inside a box somewhere else in Magic? 4. Finally, is it possible to have sub 10nm grid size? Because when I set the grid size 65nm for example, it’ll be rounded up to 70nm by the tool automatically.
@User
r
1.
move e 10
  will move the box right (east). If something is selected it will also move along 2.
select area
 will select all layers inside the box and then move command will move the contents 3. use 
select area
 and then move the mouse pointer to where you copy the contents, once at the position pressing 
c
 will copy the contents to that place 4. default grid size when you start magic with sky130 tech file is 5nm. you can also change this with 
grid 0.005um 0.005um
 . If you have placed a PCELL or some hierarchical cell then 
i
  key can be used to select them.
m
@User Thanks a lot Rana. I’ll give it a try.
@User Thanks again for your help. Please note that when I open the Magic using -T flag, the grid size is 0.01um. So I think the most achievable accuracy of Magic is 10nm.
t
@User: Don't misrepresent magic. Magic's internal grid is arbitrarily rescalable. There are specific limits that can be set to prevent it from scaling to less than the manufacturing limit of the process. But magic starts up by default using lambda units, which for the skywater process are set to 0.1um for convenience of converting units in the techfile. You should not use "-T <techfile>" to start magic; you should use "-rcfile <startup_script>" because the startup script subdivides the internal grid to match the manufacturing grid, adds menu items for parameterized cells, and other important things that will be missed if you just use "-T".
1
@User: "move e 10" will move the selection to the right by whatever the active units are. If you have used the command "snap internal", then it will move 10 internal units. If you have used "snap lambda", it will move 10 lambda units. If you have used "snap grid", then it will move 10 grid units. If you want to be sure that there is no confusion on what units are used, then use something like "move e 1um" with real dimensions, or "move e 1i" for internal units.
👍 1
m
@User Ok, got it. Thanks.
r
@User thanks for the info. I always snap to grid after opening magic so I guess I missed the difference.