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:
parent
a7758ef953
commit
edf11c635a
2 changed files with 49 additions and 1 deletions
|
@ -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--) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue