mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add $ff and $_FF_ support to equiv_simple
This commit is contained in:
		
							parent
							
								
									e54c355b41
								
							
						
					
					
						commit
						fe29869ec5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -59,7 +59,7 @@ struct EquivSimpleWorker
 | 
				
			||||||
		for (auto &conn : cell->connections())
 | 
							for (auto &conn : cell->connections())
 | 
				
			||||||
			if (yosys_celltypes.cell_input(cell->type, conn.first))
 | 
								if (yosys_celltypes.cell_input(cell->type, conn.first))
 | 
				
			||||||
				for (auto bit : sigmap(conn.second)) {
 | 
									for (auto bit : sigmap(conn.second)) {
 | 
				
			||||||
					if (cell->type.in("$dff", "$_DFF_P_", "$_DFF_N_")) {
 | 
										if (cell->type.in("$dff", "$_DFF_P_", "$_DFF_N_", "$ff", "$_FF_")) {
 | 
				
			||||||
						if (!conn.first.in("\\CLK", "\\C"))
 | 
											if (!conn.first.in("\\CLK", "\\C"))
 | 
				
			||||||
							next_seed.insert(bit);
 | 
												next_seed.insert(bit);
 | 
				
			||||||
					} else
 | 
										} else
 | 
				
			||||||
| 
						 | 
					@ -329,7 +329,7 @@ struct EquivSimplePass : public Pass {
 | 
				
			||||||
					unproven_cells_counter, GetSize(unproven_equiv_cells), log_id(module));
 | 
										unproven_cells_counter, GetSize(unproven_equiv_cells), log_id(module));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (auto cell : module->cells()) {
 | 
								for (auto cell : module->cells()) {
 | 
				
			||||||
				if (!ct.cell_known(cell->type) && !cell->type.in("$dff", "$_DFF_P_", "$_DFF_N_"))
 | 
									if (!ct.cell_known(cell->type) && !cell->type.in("$dff", "$_DFF_P_", "$_DFF_N_", "$ff", "$_FF_"))
 | 
				
			||||||
					continue;
 | 
										continue;
 | 
				
			||||||
				for (auto &conn : cell->connections())
 | 
									for (auto &conn : cell->connections())
 | 
				
			||||||
					if (yosys_celltypes.cell_output(cell->type, conn.first))
 | 
										if (yosys_celltypes.cell_output(cell->type, conn.first))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue