mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	memory_bram: Reuse extract_rdff helper for make_outreg.
Also properly skip read ports with init value or reset when not making use of make_outreg. Proper support for matching those will land later.
This commit is contained in:
		
							parent
							
								
									0795b3ec07
								
							
						
					
					
						commit
						18806f1ef6
					
				
					 5 changed files with 52 additions and 40 deletions
				
			
		| 
						 | 
				
			
			@ -13,9 +13,8 @@ miter -equiv -flatten -make_assert -make_outputs gold gate miter
 | 
			
		|||
design -load postopt
 | 
			
		||||
cd lutram_1w1r
 | 
			
		||||
 | 
			
		||||
select -assert-count 8  t:AL_MAP_LUT2
 | 
			
		||||
select -assert-count 8  t:AL_MAP_LUT4
 | 
			
		||||
select -assert-count 8   t:AL_MAP_LUT5
 | 
			
		||||
select -assert-count 36 t:AL_MAP_SEQ
 | 
			
		||||
select -assert-count 4 t:AL_MAP_LUT3
 | 
			
		||||
select -assert-count 8 t:AL_MAP_LUT6
 | 
			
		||||
select -assert-count 8 t:AL_MAP_SEQ
 | 
			
		||||
select -assert-count 8  t:EG_LOGIC_DRAM16X4 #Why not AL_LOGIC_BRAM?
 | 
			
		||||
select -assert-none t:AL_MAP_LUT2 t:AL_MAP_LUT4 t:AL_MAP_LUT5 t:AL_MAP_SEQ t:EG_LOGIC_DRAM16X4 %% t:* %D
 | 
			
		||||
select -assert-none t:AL_MAP_LUT3 t:AL_MAP_LUT6 t:AL_MAP_SEQ t:EG_LOGIC_DRAM16X4 %% t:* %D
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,9 +11,9 @@ sat -verify -prove-asserts -seq 5 -set-init-zero -show-inputs -show-outputs mite
 | 
			
		|||
 | 
			
		||||
design -load postopt
 | 
			
		||||
cd lutram_1w1r
 | 
			
		||||
select -assert-count 24 t:L6MUX21
 | 
			
		||||
select -assert-count 71 t:LUT4
 | 
			
		||||
select -assert-count 32 t:PFUMX
 | 
			
		||||
select -assert-count 8 t:L6MUX21
 | 
			
		||||
select -assert-count 36 t:LUT4
 | 
			
		||||
select -assert-count 16 t:PFUMX
 | 
			
		||||
select -assert-count 8 t:TRELLIS_DPR16X4
 | 
			
		||||
select -assert-count 35 t:TRELLIS_FF
 | 
			
		||||
select -assert-count 8 t:TRELLIS_FF
 | 
			
		||||
select -assert-none t:L6MUX21 t:LUT4 t:PFUMX t:TRELLIS_DPR16X4 t:TRELLIS_FF %% t:* %D
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,11 +12,10 @@ sat -verify -prove-asserts -seq 3 -set-init-zero -show-inputs -show-outputs mite
 | 
			
		|||
design -load postopt
 | 
			
		||||
cd lutram_1w1r
 | 
			
		||||
select -assert-count 16 t:MISTRAL_MLAB
 | 
			
		||||
select -assert-count 1 t:MISTRAL_NOT
 | 
			
		||||
select -assert-count 2 t:MISTRAL_ALUT2
 | 
			
		||||
select -assert-count 8 t:MISTRAL_ALUT3
 | 
			
		||||
select -assert-count 17 t:MISTRAL_FF
 | 
			
		||||
select -assert-none t:MISTRAL_NOT t:MISTRAL_ALUT2 t:MISTRAL_ALUT3 t:MISTRAL_FF t:MISTRAL_MLAB %% t:* %D
 | 
			
		||||
select -assert-count 8 t:MISTRAL_FF
 | 
			
		||||
select -assert-none t:MISTRAL_ALUT2 t:MISTRAL_ALUT3 t:MISTRAL_FF t:MISTRAL_MLAB %% t:* %D
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
design -reset
 | 
			
		||||
| 
						 | 
				
			
			@ -34,8 +33,7 @@ sat -verify -prove-asserts -seq 3 -set-init-zero -show-inputs -show-outputs mite
 | 
			
		|||
design -load postopt
 | 
			
		||||
cd lutram_1w1r
 | 
			
		||||
select -assert-count 16 t:MISTRAL_MLAB
 | 
			
		||||
select -assert-count 1 t:MISTRAL_NOT
 | 
			
		||||
select -assert-count 2 t:MISTRAL_ALUT2
 | 
			
		||||
select -assert-count 8 t:MISTRAL_ALUT3
 | 
			
		||||
select -assert-count 17 t:MISTRAL_FF
 | 
			
		||||
select -assert-none t:MISTRAL_NOT t:MISTRAL_ALUT2 t:MISTRAL_ALUT3 t:MISTRAL_FF t:MISTRAL_MLAB %% t:* %D
 | 
			
		||||
select -assert-count 8 t:MISTRAL_FF
 | 
			
		||||
select -assert-none t:MISTRAL_ALUT2 t:MISTRAL_ALUT3 t:MISTRAL_FF t:MISTRAL_MLAB %% t:* %D
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,7 @@ design -load postopt
 | 
			
		|||
cd lutram_1w1r
 | 
			
		||||
stat
 | 
			
		||||
select -assert-count 8 t:WIDEFN9
 | 
			
		||||
select -assert-count 16 t:LUT4
 | 
			
		||||
select -assert-count 12 t:LUT4
 | 
			
		||||
select -assert-count 8 t:DPR16X4
 | 
			
		||||
select -assert-count 36 t:FD1P3IX
 | 
			
		||||
select -assert-count 8 t:FD1P3IX
 | 
			
		||||
select -assert-none t:DPR16X4 t:FD1P3IX t:WIDEFN9 t:LUT4 t:INV t:IB t:OB t:VLO t:VHI %% t:* %D
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue