mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Added support for non-const === and !== (for miter circuits)
This commit is contained in:
		
							parent
							
								
									ecc30255ba
								
							
						
					
					
						commit
						369bf81a70
					
				
					 10 changed files with 128 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -47,7 +47,7 @@ static bool check_signal(RTLIL::Module *mod, RTLIL::SigSpec signal, RTLIL::SigSp
 | 
			
		|||
			polarity = !polarity;
 | 
			
		||||
			return check_signal(mod, cell->connections["\\A"], ref, polarity);
 | 
			
		||||
		}
 | 
			
		||||
		if (cell->type == "$eq" && cell->connections["\\Y"] == signal) {
 | 
			
		||||
		if ((cell->type == "$eq" || cell->type == "$eqx") && cell->connections["\\Y"] == signal) {
 | 
			
		||||
			if (cell->connections["\\A"].is_fully_const()) {
 | 
			
		||||
				if (!cell->connections["\\A"].as_bool())
 | 
			
		||||
					polarity = !polarity;
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +59,7 @@ static bool check_signal(RTLIL::Module *mod, RTLIL::SigSpec signal, RTLIL::SigSp
 | 
			
		|||
				return check_signal(mod, cell->connections["\\A"], ref, polarity);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if (cell->type == "$ne" && cell->connections["\\Y"] == signal) {
 | 
			
		||||
		if ((cell->type == "$ne" || cell->type == "$nex") && cell->connections["\\Y"] == signal) {
 | 
			
		||||
			if (cell->connections["\\A"].is_fully_const()) {
 | 
			
		||||
				if (cell->connections["\\A"].as_bool())
 | 
			
		||||
					polarity = !polarity;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue