mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Merge pull request #2201 from YosysHQ/fix_test_cell_ilang
Use ID macro to fix assertion
This commit is contained in:
		
						commit
						275cee71f6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -909,7 +909,7 @@ struct TestCellPass : public Pass { | |||
| 		if (!ilang_file.empty()) { | ||||
| 			if (!selected_cell_types.empty()) | ||||
| 				log_cmd_error("Do not specify any cell types when using -f.\n"); | ||||
| 			selected_cell_types.push_back("ilang"); | ||||
| 			selected_cell_types.push_back(ID(ilang)); | ||||
| 		} | ||||
| 
 | ||||
| 		if (selected_cell_types.empty()) | ||||
|  | @ -921,7 +921,7 @@ struct TestCellPass : public Pass { | |||
| 			for (int i = 0; i < num_iter; i++) | ||||
| 			{ | ||||
| 				RTLIL::Design *design = new RTLIL::Design; | ||||
| 				if (cell_type == "ilang") | ||||
| 				if (cell_type == ID(ilang)) | ||||
| 					Frontend::frontend_call(design, NULL, std::string(), "ilang " + ilang_file); | ||||
| 				else | ||||
| 					create_gold_module(design, cell_type, cell_types.at(cell_type), constmode, muxdiv); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue