mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 11:12:29 +00:00 
			
		
		
		
	Fix handling of partial init attributes in write_verilog, fixes #997
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									0ee1759f00
								
							
						
					
					
						commit
						33738c1745
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1618,7 +1618,8 @@ void dump_module(std::ostream &f, std::string indent, RTLIL::Module *module) | |||
| 			SigSpec sig = active_sigmap(wire); | ||||
| 			Const val = wire->attributes.at("\\init"); | ||||
| 			for (int i = 0; i < GetSize(sig) && i < GetSize(val); i++) | ||||
| 				active_initdata[sig[i]] = val.bits.at(i); | ||||
| 				if (val[i] == State::S0 || val[i] == State::S1) | ||||
| 					active_initdata[sig[i]] = val[i]; | ||||
| 		} | ||||
| 
 | ||||
| 	if (!module->processes.empty()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue