mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Make a few passes auto-call Mem::narrow instead of rejecting wide ports.
This essentially adds wide port support for free in passes that don't have a usefully better way of handling wide ports than just breaking them up to narrow ports, avoiding "please run memory_narrow" annoyance.
This commit is contained in:
		
							parent
							
								
									055ba748bc
								
							
						
					
					
						commit
						cbf6b719fe
					
				
					 5 changed files with 10 additions and 33 deletions
				
			
		| 
						 | 
				
			
			@ -691,6 +691,9 @@ Cell *Mem::extract_rdff(int idx, FfInitVals *initvals) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void Mem::narrow() {
 | 
			
		||||
	// NOTE: several passes depend on this function not modifying
 | 
			
		||||
	// the design at all until (and unless) emit() is called.
 | 
			
		||||
	// Be careful to preserve this.
 | 
			
		||||
	std::vector<MemRd> new_rd_ports;
 | 
			
		||||
	std::vector<MemWr> new_wr_ports;
 | 
			
		||||
	std::vector<std::pair<int, int>> new_rd_map;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue