mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	memory_bram hotfix for memories with width 1
This commit is contained in:
		
							parent
							
								
									08c13f635c
								
							
						
					
					
						commit
						b26590f8ab
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -294,10 +294,10 @@ bool replace_cell(Cell *cell, const rules_t::bram_t &bram, const rules_t::match_
 | 
			
		|||
	SigSpec rd_data = cell->getPort("\\RD_DATA");
 | 
			
		||||
	SigSpec rd_addr = cell->getPort("\\RD_ADDR");
 | 
			
		||||
 | 
			
		||||
	if (match.shuffle_enable)
 | 
			
		||||
	if (match.shuffle_enable && bram.dbits >= match.shuffle_enable*2)
 | 
			
		||||
	{
 | 
			
		||||
		int bucket_size = bram.dbits / match.shuffle_enable;
 | 
			
		||||
		log("      Shuffle enable and data bit to accommodate enable buckets of size %d..\n", bucket_size);
 | 
			
		||||
		log("      Shuffle bit order to accommodate enable buckets of size %d..\n", bucket_size);
 | 
			
		||||
 | 
			
		||||
		// extract unshuffled data/enable bits
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -363,7 +363,7 @@ bool replace_cell(Cell *cell, const rules_t::bram_t &bram, const rules_t::match_
 | 
			
		|||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		log("      Results of enable shuffling:");
 | 
			
		||||
		log("      Results of bit order shuffling:");
 | 
			
		||||
		for (int v : shuffle_map)
 | 
			
		||||
			log(" %d", v);
 | 
			
		||||
		log("\n");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue