mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	retime_mode -> dff_mode
This commit is contained in:
		
							parent
							
								
									aa2d3af631
								
							
						
					
					
						commit
						fad15d276d
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		|  | @ -269,7 +269,7 @@ struct abc_output_filter | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::string script_file, std::string exe_file, | void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::string script_file, std::string exe_file, | ||||||
| 		bool cleanup, vector<int> lut_costs, bool /*retime_mode*/, std::string clk_str, | 		bool cleanup, vector<int> lut_costs, bool /*dff_mode*/, std::string clk_str, | ||||||
| 		bool /*keepff*/, std::string delay_target, std::string /*lutin_shared*/, bool fast_mode, | 		bool /*keepff*/, std::string delay_target, std::string /*lutin_shared*/, bool fast_mode, | ||||||
| 		bool show_tempdir, std::string box_file, std::string lut_file, | 		bool show_tempdir, std::string box_file, std::string lut_file, | ||||||
| 		std::string wire_delay, const dict<int,IdString> &box_lookup, | 		std::string wire_delay, const dict<int,IdString> &box_lookup, | ||||||
|  | @ -309,7 +309,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri | ||||||
| 			clk_sig = assign_map(RTLIL::SigSpec(module->wires_.at(RTLIL::escape_id(clk_str)), 0)); | 			clk_sig = assign_map(RTLIL::SigSpec(module->wires_.at(RTLIL::escape_id(clk_str)), 0)); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	//if (retime_mode && clk_sig.empty())
 | 	//if (dff_mode && clk_sig.empty())
 | ||||||
| 	//	log_cmd_error("Clock domain %s not found.\n", clk_str.c_str());
 | 	//	log_cmd_error("Clock domain %s not found.\n", clk_str.c_str());
 | ||||||
| 
 | 
 | ||||||
| 	std::string tempdir_name = "/tmp/yosys-abc-XXXXXX"; | 	std::string tempdir_name = "/tmp/yosys-abc-XXXXXX"; | ||||||
|  | @ -383,7 +383,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri | ||||||
| 	fprintf(f, "%s\n", abc_script.c_str()); | 	fprintf(f, "%s\n", abc_script.c_str()); | ||||||
| 	fclose(f); | 	fclose(f); | ||||||
| 
 | 
 | ||||||
| 	if (/*retime_mode ||*/ !clk_str.empty()) | 	if (/*dff_mode ||*/ !clk_str.empty()) | ||||||
| 	{ | 	{ | ||||||
| 		if (clk_sig.size() == 0) | 		if (clk_sig.size() == 0) | ||||||
| 			log("No%s clock domain found. Not extracting any FF cells.\n", clk_str.empty() ? "" : " matching"); | 			log("No%s clock domain found. Not extracting any FF cells.\n", clk_str.empty() ? "" : " matching"); | ||||||
|  | @ -957,7 +957,7 @@ struct Abc9Pass : public Pass { | ||||||
| #endif | #endif | ||||||
| 		std::string script_file, clk_str, box_file, lut_file; | 		std::string script_file, clk_str, box_file, lut_file; | ||||||
| 		std::string delay_target, lutin_shared = "-S 1", wire_delay; | 		std::string delay_target, lutin_shared = "-S 1", wire_delay; | ||||||
| 		bool fast_mode = false, /*retime_mode = false,*/ keepff = false, cleanup = true; | 		bool fast_mode = false, dff_mode = false, keepff = false, cleanup = true; | ||||||
| 		bool show_tempdir = false; | 		bool show_tempdir = false; | ||||||
| 		vector<int> lut_costs; | 		vector<int> lut_costs; | ||||||
| 		markgroups = false; | 		markgroups = false; | ||||||
|  | @ -1049,12 +1049,12 @@ struct Abc9Pass : public Pass { | ||||||
| 				continue; | 				continue; | ||||||
| 			} | 			} | ||||||
| 			//if (arg == "-retime") {
 | 			//if (arg == "-retime") {
 | ||||||
| 			//	retime_mode = true;
 | 			//	dff_mode = true;
 | ||||||
| 			//	continue;
 | 			//	continue;
 | ||||||
| 			//}
 | 			//}
 | ||||||
| 			//if (arg == "-clk" && argidx+1 < args.size()) {
 | 			//if (arg == "-clk" && argidx+1 < args.size()) {
 | ||||||
| 			//	clk_str = args[++argidx];
 | 			//	clk_str = args[++argidx];
 | ||||||
| 			//	retime_mode = true;
 | 			//	dff_mode = true;
 | ||||||
| 			//	continue;
 | 			//	continue;
 | ||||||
| 			//}
 | 			//}
 | ||||||
| 			//if (arg == "-keepff") {
 | 			//if (arg == "-keepff") {
 | ||||||
|  | @ -1169,7 +1169,7 @@ struct Abc9Pass : public Pass { | ||||||
| 
 | 
 | ||||||
| 			assign_map.set(mod); | 			assign_map.set(mod); | ||||||
| 
 | 
 | ||||||
| 			if (true || /*!dff_mode ||*/ !clk_str.empty()) { | 			if (!dff_mode || !clk_str.empty()) { | ||||||
| 
 | 
 | ||||||
| 				design->selection_stack.emplace_back(false); | 				design->selection_stack.emplace_back(false); | ||||||
| 				RTLIL::Selection& sel = design->selection_stack.back(); | 				RTLIL::Selection& sel = design->selection_stack.back(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue