Skip to content

Commit 28b446c

Browse files
committed
Use correct type when printing supply pull message
1 parent 78a49ea commit 28b446c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

elab_sig.cc

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000-2015 Stephen Williams ([email protected])
2+
* Copyright (c) 2000-2016 Stephen Williams ([email protected])
33
* Copyright CERN 2012 / Stephen Williams ([email protected])
44
*
55
* This source code is free software; you can redistribute it
@@ -1185,6 +1185,14 @@ NetNet* PWire::elaborate_sig(Design*des, NetScope*scope) const
11851185

11861186
NetLogic*pull = 0;
11871187
if (wtype == NetNet::SUPPLY0 || wtype == NetNet::SUPPLY1) {
1188+
if (debug_elaborate) {
1189+
cerr << get_fileline() << ": debug: "
1190+
<< "Generate a SUPPLY pull for the ";
1191+
if (wtype == NetNet::SUPPLY0) cerr << "supply0";
1192+
else cerr << "supply1";
1193+
cerr << " net." << endl;
1194+
}
1195+
11881196
NetLogic::TYPE pull_type = (wtype==NetNet::SUPPLY1)
11891197
? NetLogic::PULLUP
11901198
: NetLogic::PULLDOWN;
@@ -1195,14 +1203,6 @@ NetNet* PWire::elaborate_sig(Design*des, NetScope*scope) const
11951203
pull->pin(0).drive1(IVL_DR_SUPPLY);
11961204
des->add_node(pull);
11971205
wtype = NetNet::WIRE;
1198-
1199-
if (debug_elaborate) {
1200-
cerr << get_fileline() << ": debug: "
1201-
<< "Generate a SUPPLY pull for the ";
1202-
if (wtype == NetNet::SUPPLY0) cerr << "supply0";
1203-
else cerr << "supply1";
1204-
cerr << " net." << endl;
1205-
}
12061206
}
12071207

12081208

0 commit comments

Comments
 (0)