fix gate get port state
This commit is contained in:
		| @@ -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 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Redo
					Redo