From 66f051d853150b865c7980b91e6357831751fbcb Mon Sep 17 00:00:00 2001 From: YRabbit Date: Tue, 24 Jun 2025 21:24:10 +1000 Subject: [PATCH] Gowin. BUGFIX. Stupid == vs = (#1504) he good thing is that these cases are very few. Signed-off-by: YRabbit --- himbaechel/uarch/gowin/globals.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/himbaechel/uarch/gowin/globals.cc b/himbaechel/uarch/gowin/globals.cc index 20c5356a..ca2669bd 100644 --- a/himbaechel/uarch/gowin/globals.cc +++ b/himbaechel/uarch/gowin/globals.cc @@ -1087,13 +1087,13 @@ struct GowinGlobalRouter WireId gate_wire1; gwu.get_segment_top_gate_wires(s_i, gate_wire, gate_wire1); if (gate_wire == WireId()) { - gate_wire == gate_wire1; + gate_wire = gate_wire1; } if (gate_wire == WireId()) { // This segment has no top gate wires, so we use one of the bottom ones. gwu.get_segment_bottom_gate_wires(s_i, gate_wire, gate_wire1); if (gate_wire == WireId()) { - gate_wire == gate_wire1; + gate_wire = gate_wire1; } tb_wire = bottom_seg_wire; wire_to_isolate = top_seg_wire; @@ -1105,13 +1105,13 @@ struct GowinGlobalRouter wire_to_isolate = top_seg_wire; gwu.get_segment_bottom_gate_wires(s_i, gate_wire, gate_wire1); if (gate_wire == WireId()) { - gate_wire == gate_wire1; + gate_wire = gate_wire1; } if (gate_wire == WireId()) { // This segment has no top gate wires, so we use one of the bottom ones. gwu.get_segment_top_gate_wires(s_i, gate_wire, gate_wire1); if (gate_wire == WireId()) { - gate_wire == gate_wire1; + gate_wire = gate_wire1; } tb_wire = top_seg_wire; wire_to_isolate = WireId();