__nsim_dev_port_lookup
if (__nsim_dev_port_lookup(nsim_dev, type, port_index))
nsim_dev_port = __nsim_dev_port_lookup(nsim_dev, type, port_index);