mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Added read-enable to memory model
This commit is contained in:
		
							parent
							
								
									ec92c89659
								
							
						
					
					
						commit
						924d9d6e86
					
				
					 17 changed files with 157 additions and 76 deletions
				
			
		| 
						 | 
				
			
			@ -1220,6 +1220,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
 | 
			
		|||
			id2ast->meminfo(mem_width, mem_size, addr_bits);
 | 
			
		||||
 | 
			
		||||
			cell->setPort("\\CLK", RTLIL::SigSpec(RTLIL::State::Sx, 1));
 | 
			
		||||
			cell->setPort("\\EN", RTLIL::SigSpec(RTLIL::State::Sx, 1));
 | 
			
		||||
			cell->setPort("\\ADDR", children[0]->genWidthRTLIL(addr_bits));
 | 
			
		||||
			cell->setPort("\\DATA", RTLIL::SigSpec(wire));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue