mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Add $_NMUX_, add "abc -g cmos", add proper cmos cell costs
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									44a9dcbbbf
								
							
						
					
					
						commit
						023086bd46
					
				
					 19 changed files with 174 additions and 42 deletions
				
			
		|  | @ -496,7 +496,7 @@ struct BtorWorker | |||
| 			goto okay; | ||||
| 		} | ||||
| 
 | ||||
| 		if (cell->type.in("$mux", "$_MUX_")) | ||||
| 		if (cell->type.in("$mux", "$_MUX_", "$_NMUX_")) | ||||
| 		{ | ||||
| 			SigSpec sig_a = sigmap(cell->getPort("\\A")); | ||||
| 			SigSpec sig_b = sigmap(cell->getPort("\\B")); | ||||
|  | @ -511,6 +511,12 @@ struct BtorWorker | |||
| 			int nid = next_nid++; | ||||
| 			btorf("%d ite %d %d %d %d\n", nid, sid, nid_s, nid_b, nid_a); | ||||
| 
 | ||||
| 			if (cell->type == "$_NMUX_") { | ||||
| 				int tmp = nid; | ||||
| 				nid = next_nid++; | ||||
| 				btorf("%d not %d %d\n", nid, sid, tmp); | ||||
| 			} | ||||
| 
 | ||||
| 			add_nid_sig(nid, sig_y); | ||||
| 			goto okay; | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue