@@ -64,16 +64,6 @@ using BnetSeq = BufferedNetSeq;
6464using BnetPtr = BufferedNetPtr;
6565using BnetMetrics = BufferedNet::Metrics;
6666
67- // from Rebuffer.cc
68- void characterizeChoiceTree (dbNetwork* nwk,
69- int level,
70- const BufferedNetPtr& choice,
71- int & buffer_count,
72- int & load_count,
73- int & wire_count,
74- int & junction_count,
75- std::set<odb::dbModule*>& load_modules);
76-
7767// Template magic to make it easier to write algorithms descending
7868// over the buffer tree in the form of lambdas; it allows recursive
7969// lambda calling and it keeps track of the level number which is important
@@ -1771,79 +1761,6 @@ std::vector<Instance*> Rebuffer::collectImportedTreeBufferInstances(
17711761 return insts;
17721762}
17731763
1774- void characterizeChoiceTree (dbNetwork* nwk,
1775- int level,
1776- const BufferedNetPtr& choice,
1777- int & buffer_count,
1778- int & load_count,
1779- int & wire_count,
1780- int & junction_count,
1781- std::set<odb::dbModule*>& load_modules)
1782- {
1783- switch (choice->type ()) {
1784- case BufferedNetType::buffer: {
1785- buffer_count++;
1786- characterizeChoiceTree (nwk,
1787- level + 1 ,
1788- choice->ref (),
1789- buffer_count,
1790- load_count,
1791- wire_count,
1792- junction_count,
1793- load_modules);
1794- break ;
1795- }
1796- case BufferedNetType::wire: {
1797- wire_count++;
1798- characterizeChoiceTree (nwk,
1799- level + 1 ,
1800- choice->ref (),
1801- buffer_count,
1802- load_count,
1803- wire_count,
1804- junction_count,
1805- load_modules);
1806- break ;
1807- }
1808- case BufferedNetType::junction: {
1809- junction_count++;
1810- characterizeChoiceTree (nwk,
1811- level + 1 ,
1812- choice->ref (),
1813- buffer_count,
1814- load_count,
1815- wire_count,
1816- junction_count,
1817- load_modules);
1818- characterizeChoiceTree (nwk,
1819- level + 1 ,
1820- choice->ref2 (),
1821- buffer_count,
1822- load_count,
1823- wire_count,
1824- junction_count,
1825- load_modules);
1826- break ;
1827- }
1828- case BufferedNetType::load: {
1829- const Pin* load_pin = choice->loadPin ();
1830- odb::dbITerm* load_iterm = nullptr ;
1831- odb::dbBTerm* load_bterm = nullptr ;
1832- odb::dbModITerm* load_moditerm = nullptr ;
1833-
1834- nwk->staToDb (load_pin, load_iterm, load_bterm, load_moditerm);
1835- if (load_iterm) {
1836- dbInst* load_inst = load_iterm->getInst ();
1837- if (load_inst) {
1838- load_modules.insert (load_inst->getModule ());
1839- }
1840- }
1841- load_count++;
1842- break ;
1843- }
1844- }
1845- }
1846-
18471764// Martin (2024-04-18): This is copied over from original RepairSetup
18481765// buffering mostly unchanged and is ripe for clean-up/rewrite later.
18491766int Rebuffer::exportBufferTree (const BufferedNetPtr& choice,
0 commit comments