mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	By instantiating the LUTRAM cell directly, we avoid a trip through altsyncram, which speeds up Quartus synthesis time. This also gives a little more flexibility, as Yosys can build RAMs out of individual 32x1 LUTRAM cells. While working on this, I discovered that the mem_init0 parameter of <family>_mlab_cell gets ignored by Quartus.
		
			
				
	
	
		
			18 lines
		
	
	
		
			No EOL
		
	
	
		
			316 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			No EOL
		
	
	
		
			316 B
		
	
	
	
		
			Text
		
	
	
	
	
	
bram MISTRAL_MLAB
 | 
						|
    init   0   # TODO: Re-enable when Yosys remembers the original filename.
 | 
						|
    abits  5
 | 
						|
    dbits  1
 | 
						|
    groups 2
 | 
						|
    ports  1 1
 | 
						|
    wrmode 1 0
 | 
						|
    # write enable
 | 
						|
    enable 1 0
 | 
						|
    transp 0 0
 | 
						|
    clocks 1 0
 | 
						|
    clkpol 1 1
 | 
						|
endbram
 | 
						|
 | 
						|
match MISTRAL_MLAB
 | 
						|
    min efficiency 5
 | 
						|
    make_outreg
 | 
						|
endmatch |