@User: This comes in several flavors depending on the arguments.
<cellname>
has a namespace and device name. For starters,
magic::gencell sky130::sky130_fd_pr__nfet_01v8
will give you an interactive window to enter parameters. That is probably not what you want. What you want is
magic::gencell sky130::sky130_fd_pr__nfet_01v8 <instance> -spice <param> <value> ...
, for example,
magic::gencell sky130::sky130_fd_pr__nfet_01v8 xm0 -spice W 2.0 L 0.18
. There is a Tcl scripted routine in the magic source code called
toolkit.tcl
and it has a routine in it called
magic::netlist_to_layout
which does more or less what you are attempting to do, except in a trivial way. It reads a SPICE netlist and creates a layout, seeding it with components from the netlist and generating subcircuits and ports. But no attempt to arrange anything; all devices are just placed end-to-end in a row. This procedure can be invoked from the Magic GUI as
File->Import SPICE
(when using the setup files installed by open_pdks).