make gate update use net c structT

This commit is contained in:
Redo
2022-11-04 18:51:18 -06:00
parent 4b69ea3055
commit 2376154957
3 changed files with 4 additions and 2 deletions

View File

@@ -58,8 +58,7 @@ function Gate.setportstate(gate, index, state)
gate.port_states[index] = state
if ((gate.port_net_state_num[index][0]>0) ~= (gate.port_net_state[index][0]==1)) and (gate.port_net_in_queue[index][0]==0) then
local net = gate.port_nets[index]
local cnet = net.c
local cnet = gate.port_nets_c[index]
Simulation.queuegroup_c(GSim, cnet)
end
end