Commit 0897e54d authored by Connor Abbott's avatar Connor Abbott

bifrost/asm: set port2 to port3 when unused

Seems the blob also does this.
parent ffabfe2a
......@@ -906,10 +906,14 @@ class RegisterFile:
port_fields[idx] = 0
# When not using port 3 for reading or writing, the compiler always
# seems to set it's port index to the same value as port 2's index.
# seems to set it's port index to the same value as port 2's index...
if not self.ports[3]:
port_fields[3] = port_fields[2]
# ...and vice versa.
if not self.ports[2]:
port_fields[2] = port_fields[3]
if self.ports[1]:
if port_fields[0] > port_fields[1]:
for port, idx in enumerate(port_fields[0:1]):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment