fix gate get port state
This commit is contained in:
parent
b1c5eb1479
commit
7823e413ee
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user