aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2022-03-22 06:15:29 +1000
committerGitHub <noreply@github.com>2022-03-21 20:15:29 +0000
commit69b4461f5531f6d05ed8bd4342a7dcecf774b8ef (patch)
tree0a99b9166e957aea6b62421a85acd038d63b17eb
parentbb923c7732dbf8c930c8af85acd6f0583115af8e (diff)
downloadnextpnr-69b4461f5531f6d05ed8bd4342a7dcecf774b8ef.tar.gz
nextpnr-69b4461f5531f6d05ed8bd4342a7dcecf774b8ef.tar.bz2
nextpnr-69b4461f5531f6d05ed8bd4342a7dcecf774b8ef.zip
gowin: Name the constants (#958)
Place arbitrary constants side by side to avoid conflicts. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
-rw-r--r--gowin/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc
index 4400a554..fa0a66a3 100644
--- a/gowin/arch.cc
+++ b/gowin/arch.cc
@@ -952,10 +952,10 @@ Arch::Arch(ArchArgs args) : args(args)
// setup db
// add global VCC and GND bels
- addBel(id_GND, id_GND, Loc(0, 0, 998), true);
+ addBel(id_GND, id_GND, Loc(0, 0, BelZ::gnd_0_z), true);
addWire(id_VSS, id_VSS, 0, 0);
addBelOutput(id_GND, id_G, id_VSS);
- addBel(id_VCC, id_VCC, Loc(0, 0, 999), true);
+ addBel(id_VCC, id_VCC, Loc(0, 0, BelZ::vcc_0_z), true);
addWire(id_VCC, id_VCC, 0, 0);
addBelOutput(id_VCC, id_V, id_VCC);
char buf[32];