make net update use c structT
This commit is contained in:
@@ -415,10 +415,10 @@ function Simulation.remove_net(sim, net)
|
||||
sim.nets[net.id] = nil
|
||||
end
|
||||
|
||||
function Simulation.net_from_netc(sim, netc)
|
||||
return sim.nets[netc.id] or error("no net for id "..netc.id)
|
||||
function Simulation.net_from_cnet(sim, cnet)
|
||||
return sim.nets[cnet.id] or error("no net for id "..cnet.id)
|
||||
end
|
||||
|
||||
function Simulation.gate_from_gatec(sim, gatec)
|
||||
return sim.gates[gatec.objref] or error("no gate for objref "..gatec.objref)
|
||||
function Simulation.gate_from_cgate(sim, cgate)
|
||||
return sim.gates[cgate.objref] or error("no gate for objref "..cgate.objref)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user