mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			619 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			619 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| # LUT RAMs for Virtex 5, Virtex 6, Spartan 6, Series 7.
 | |
| # The corresponding mapping file is lutrams_xc5v_map.v
 | |
| 
 | |
| # Single-port RAMs.
 | |
| 
 | |
| ram distributed $__ANALOGDEVICES_LUTRAM_SP_ {
 | |
| 	option "ABITS" 5 {
 | |
| 		cost 1;
 | |
| 		abits 5;
 | |
| 		width 1;
 | |
| 	}
 | |
| 	option "ABITS" 6 {
 | |
| 		cost 2;
 | |
| 		abits 6;
 | |
| 		width 1;
 | |
| 	}
 | |
| 	init no_undef;
 | |
| 	prune_rom;
 | |
| 	port arsw "RW" {
 | |
| 		clock anyedge;
 | |
| 	}
 | |
| }
 | |
| 
 | |
| # Dual-port RAMs.
 | |
| 
 | |
| ram distributed $__ANALOGDEVICES_LUTRAM_DP_ {
 | |
| 	option "ABITS" 5 {
 | |
| 		cost 2;
 | |
| 		abits 5;
 | |
| 		width 1;
 | |
| 	}
 | |
| 	option "ABITS" 6 {
 | |
| 		cost 4;
 | |
| 		abits 6;
 | |
| 		width 1;
 | |
| 	}
 | |
| 	init no_undef;
 | |
| 	prune_rom;
 | |
| 	port arsw "RW" {
 | |
| 		clock anyedge;
 | |
| 	}
 | |
| 	port ar "R" {
 | |
| 	}
 | |
| }
 |