mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Use State::S{0,1}
This commit is contained in:
		
							parent
							
								
									3486235338
								
							
						
					
					
						commit
						046e1a5214
					
				
					 10 changed files with 19 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -47,8 +47,8 @@ struct BruteForceEquivChecker
 | 
			
		|||
	{
 | 
			
		||||
		if (inputs.size() < mod1_inputs.size()) {
 | 
			
		||||
			RTLIL::SigSpec inputs0 = inputs, inputs1 = inputs;
 | 
			
		||||
			inputs0.append(RTLIL::Const(0, 1));
 | 
			
		||||
			inputs1.append(RTLIL::Const(1, 1));
 | 
			
		||||
			inputs0.append(State::S0);
 | 
			
		||||
			inputs1.append(State::S1);
 | 
			
		||||
			run_checker(inputs0);
 | 
			
		||||
			run_checker(inputs1);
 | 
			
		||||
			return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -236,7 +236,7 @@ void create_miter_equiv(struct Pass *that, std::vector<std::string> args, RTLIL:
 | 
			
		|||
	if (flag_make_assert) {
 | 
			
		||||
		RTLIL::Cell *assert_cell = miter_module->addCell(NEW_ID, "$assert");
 | 
			
		||||
		assert_cell->setPort("\\A", all_conditions);
 | 
			
		||||
		assert_cell->setPort("\\EN", RTLIL::SigSpec(1, 1));
 | 
			
		||||
		assert_cell->setPort("\\EN", State::S1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	RTLIL::Wire *w_trigger = miter_module->addWire("\\trigger");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue