mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Assign wires an smtoffset
Wires weren't being assigned an smtoffset value so when generating a yosys witness trace it would also use an offset of 0. Not sure if this has any other effects, but it fixes the bug I was having. @jix could you take a look at this?
This commit is contained in:
		
							parent
							
								
									c2285b3460
								
							
						
					
					
						commit
						52ad7a47f3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -628,7 +628,7 @@ struct Smt2Worker
 | 
				
			||||||
				bool init_only = cell->type.in(ID($anyconst), ID($anyinit), ID($allconst));
 | 
									bool init_only = cell->type.in(ID($anyconst), ID($anyinit), ID($allconst));
 | 
				
			||||||
				for (auto chunk : cell->getPort(QY).chunks())
 | 
									for (auto chunk : cell->getPort(QY).chunks())
 | 
				
			||||||
					if (chunk.is_wire())
 | 
										if (chunk.is_wire())
 | 
				
			||||||
						decls.push_back(witness_signal(init_only ? "init" : "seq", chunk.width, chunk.offset, "", idcounter, chunk.wire));
 | 
											decls.push_back(witness_signal(init_only ? "init" : "seq", chunk.width, chunk.offset, "", idcounter, chunk.wire, chunk.offset));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				makebits(stringf("%s#%d", get_id(module), idcounter), GetSize(cell->getPort(QY)), log_signal(cell->getPort(QY)));
 | 
									makebits(stringf("%s#%d", get_id(module), idcounter), GetSize(cell->getPort(QY)), log_signal(cell->getPort(QY)));
 | 
				
			||||||
				if (cell->type == ID($anyseq))
 | 
									if (cell->type == ID($anyseq))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue