deminout - demote inout ports to input or output

yosys> help deminout
deminout [options] [selection]
"Demote" inout ports to input or output ports, if possible.