mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	cxxrtl: don't emit syncs for empty lhs.
This commit is contained in:
		
							parent
							
								
									dc69365258
								
							
						
					
					
						commit
						e97c36d4c4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1138,7 +1138,7 @@ struct CxxrtlWorker { | ||||||
| 		f << indent << "// cell " << cell->name.str() << " syncs\n"; | 		f << indent << "// cell " << cell->name.str() << " syncs\n"; | ||||||
| 		for (auto conn : cell->connections()) | 		for (auto conn : cell->connections()) | ||||||
| 			if (cell->output(conn.first)) | 			if (cell->output(conn.first)) | ||||||
| 				if (is_cxxrtl_sync_port(cell, conn.first)) { | 				if (is_cxxrtl_sync_port(cell, conn.first) && !conn.second.empty()) { | ||||||
| 					f << indent; | 					f << indent; | ||||||
| 					dump_sigspec_lhs(conn.second, for_debug); | 					dump_sigspec_lhs(conn.second, for_debug); | ||||||
| 					f << " = " << mangle(cell) << access << mangle_wire_name(conn.first) << ".curr;\n"; | 					f << " = " << mangle(cell) << access << mangle_wire_name(conn.first) << ".curr;\n"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue