From b1c5eb1479e1c8d4e70aec37ea2ee4b3e8e9f272 Mon Sep 17 00:00:00 2001 From: Redo Date: Fri, 4 Nov 2022 15:06:50 -0600 Subject: [PATCH] remove gate ffi struct --- sim/gate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/gate.lua b/sim/gate.lua index e07d0ad..c136ef9 100644 --- a/sim/gate.lua +++ b/sim/gate.lua @@ -28,7 +28,7 @@ function Gate.setportstate(gate, index, state) if state ~= gate.port_states[index] then local group = gate.port_nets[index] 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 Simulation.queuegroup(GSim, group)