mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Covers most of the todo list, at least functionally. Some minor issues with not always using hardware features.
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| ram block \RAM_WREN {
 | |
| 	abits 4;
 | |
| 	init none;
 | |
| 
 | |
| 	ifdef NO_BYTE {
 | |
| 		# single enable signal
 | |
| 		widths 4 8 global;
 | |
| 	} else ifdef W4_B4 {
 | |
| 		widths 4 global;
 | |
| 		byte 4;
 | |
| 	} else ifdef W8_B4 {
 | |
| 		widths 8 global;
 | |
| 		option "BYTESIZE" 4 {
 | |
| 			byte 4;
 | |
| 		}
 | |
| 	} else ifdef W8_B8 {
 | |
| 		width 8;
 | |
| 		byte 8;
 | |
| 	} else ifdef W16_B4 {
 | |
| 		widths 16 global;
 | |
| 		option "BYTESIZE" 4 {
 | |
| 			byte 4;
 | |
| 		}
 | |
| 	} else ifdef W64_B8 {
 | |
| 		widths 64 global;
 | |
| 		option "BYTESIZE" 8 {
 | |
| 			byte 8;
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	port srsw "A" {
 | |
| 		clock posedge;
 | |
| 		ifdef WRBE_SEPARATE {
 | |
| 			wrbe_separate;
 | |
| 		}
 | |
| 	}
 | |
| }
 |