mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-28 10:19:26 +00:00 
			
		
		
		
	Fix port hanlding in pmgen
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									adb81ba386
								
							
						
					
					
						commit
						55bf8f69e0
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -422,8 +422,6 @@ with open(outfile, "w") as f: | ||||||
|     print("  void add_siguser(const SigSpec &sig, Cell *cell) {", file=f) |     print("  void add_siguser(const SigSpec &sig, Cell *cell) {", file=f) | ||||||
|     print("    for (auto bit : sigmap(sig)) {", file=f) |     print("    for (auto bit : sigmap(sig)) {", file=f) | ||||||
|     print("      if (bit.wire == nullptr) continue;", file=f) |     print("      if (bit.wire == nullptr) continue;", file=f) | ||||||
|     print("      if (sigusers.count(bit) == 0 && bit.wire->port_id)", file=f) |  | ||||||
|     print("        sigusers[bit].insert(nullptr);", file=f) |  | ||||||
|     print("      sigusers[bit].insert(cell);", file=f) |     print("      sigusers[bit].insert(cell);", file=f) | ||||||
|     print("    }", file=f) |     print("    }", file=f) | ||||||
|     print("  }", file=f) |     print("  }", file=f) | ||||||
|  | @ -478,10 +476,11 @@ with open(outfile, "w") as f: | ||||||
|             else: |             else: | ||||||
|                 print("    ud_{}.{} = {}();".format(current_pattern, s, t), file=f) |                 print("    ud_{}.{} = {}();".format(current_pattern, s, t), file=f) | ||||||
|     current_pattern = None |     current_pattern = None | ||||||
|     print("    for (auto cell : module->cells()) {", file=f) |     print("    for (auto port : module->ports)", file=f) | ||||||
|  |     print("      add_siguser(module->wire(port), nullptr);", file=f) | ||||||
|  |     print("    for (auto cell : module->cells())", file=f) | ||||||
|     print("      for (auto &conn : cell->connections())", file=f) |     print("      for (auto &conn : cell->connections())", file=f) | ||||||
|     print("        add_siguser(conn.second, cell);", file=f) |     print("        add_siguser(conn.second, cell);", file=f) | ||||||
|     print("    }", file=f) |  | ||||||
|     print("    for (auto cell : cells) {", file=f) |     print("    for (auto cell : cells) {", file=f) | ||||||
| 
 | 
 | ||||||
|     for index in range(len(blocks)): |     for index in range(len(blocks)): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue