From 24af19b58d4b0b4db7d51d4f76c9334580386e5b Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 3 May 2021 15:19:52 +0100 Subject: cyclonev: Fix some archcheck fails Signed-off-by: gatecat --- cyclonev/arch.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cyclonev/arch.cc') diff --git a/cyclonev/arch.cc b/cyclonev/arch.cc index d8464ca2..98a09d3b 100644 --- a/cyclonev/arch.cc +++ b/cyclonev/arch.cc @@ -249,6 +249,7 @@ WireId Arch::add_wire(int x, int y, IdString name, uint64_t flags) z++; wires[id].name_override = name; wires[id].flags = flags; + npnr_wirebyname[full_name] = id; return id; } } @@ -263,6 +264,7 @@ PipId Arch::add_pip(WireId src, WireId dst) void Arch::add_bel_pin(BelId bel, IdString pin, PortType dir, WireId wire) { auto &b = bel_data(bel); + NPNR_ASSERT(!b.pins.count(pin)); b.pins[pin].dir = dir; b.pins[pin].wire = wire; -- cgit v1.2.3