remove gate ffi struct
This commit is contained in:
parent
a9ac30920e
commit
b1c5eb1479
@ -28,7 +28,7 @@ function Gate.setportstate(gate, index, state)
|
|||||||
if state ~= gate.port_states[index] then
|
if state ~= gate.port_states[index] then
|
||||||
local group = gate.port_nets[index]
|
local group = gate.port_nets[index]
|
||||||
group.state_num = group.state_num - gate.port_states[index] + state
|
group.state_num = group.state_num - gate.port_states[index] + state
|
||||||
gate.ports_states[index] = state
|
gate.port_states[index] = state
|
||||||
|
|
||||||
if ((group.state_num>0) ~= (group.state==1)) and (group.in_queue==0) then
|
if ((group.state_num>0) ~= (group.state==1)) and (group.in_queue==0) then
|
||||||
Simulation.queuegroup(GSim, group)
|
Simulation.queuegroup(GSim, group)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user