fix gate get port state

This commit is contained in:
Redo 2022-11-04 15:11:59 -06:00
parent b1c5eb1479
commit 7823e413ee
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,7 @@ end
-- Logic Critical -- Logic Critical
function Gate.getportstate(gate, index) function Gate.getportstate(gate, index)
return gate.port_states[index] return gate.port_nets[index].state
end end
-- Logic Critical -- Logic Critical

View File

@ -49,7 +49,6 @@ end
function Port.setgroup(port, group) function Port.setgroup(port, group)
port.group = group port.group = group
--Port.getgate(port)[port.idx*2] = group
Port.getgate(port).port_nets[port.idx] = group Port.getgate(port).port_nets[port.idx] = group
end end