3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Assert on new logic loops in "share" pass

This commit is contained in:
Clifford Wolf 2014-09-21 12:57:33 +02:00
parent a7758ef953
commit edf11c635a
2 changed files with 49 additions and 1 deletions

View file

@ -155,7 +155,7 @@ struct TopoSort
void sort_worker(const T &n, std::set<T> &marked_cells, std::set<T> &active_cells, std::vector<T> &active_stack)
{
if (active_cells.count(n)) {
found_loops = false;
found_loops = true;
if (analyze_loops) {
std::set<T> loop;
for (int i = SIZE(active_stack)-1; i >= 0; i--) {