mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Added $equiv cell type
This commit is contained in:
		
							parent
							
								
									3a58b8d5b5
								
							
						
					
					
						commit
						e13a45ae61
					
				
					 4 changed files with 33 additions and 2 deletions
				
			
		|  | @ -114,6 +114,7 @@ struct CellTypes | |||
| 		setup_type("$fa", {A, B, C}, {X, Y}, true); | ||||
| 
 | ||||
| 		setup_type("$assert", {A, EN}, pool<RTLIL::IdString>(), true); | ||||
| 		setup_type("$equiv", {A, B}, {Y}, true); | ||||
| 	} | ||||
| 
 | ||||
| 	void setup_internals_mem() | ||||
|  |  | |||
|  | @ -905,6 +905,14 @@ namespace { | |||
| 				return; | ||||
| 			} | ||||
| 
 | ||||
| 			if (cell->type == "$equiv") { | ||||
| 				port("\\A", 1); | ||||
| 				port("\\B", 1); | ||||
| 				port("\\Y", 1); | ||||
| 				check_expected(); | ||||
| 				return; | ||||
| 			} | ||||
| 
 | ||||
| 			if (cell->type == "$_BUF_")  { check_gate("AY"); return; } | ||||
| 			if (cell->type == "$_NOT_")  { check_gate("AY"); return; } | ||||
| 			if (cell->type == "$_AND_")  { check_gate("ABY"); return; } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue