mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-27 01:39:23 +00:00 
			
		
		
		
	dfflibmap: allow gzipped liberty files
This commit is contained in:
		
							parent
							
								
									ab2ca831c9
								
							
						
					
					
						commit
						0877798e18
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1,5 +1,6 @@ | |||
| #include "kernel/yosys.h" | ||||
| #include "kernel/ff.h" | ||||
| #include "kernel/gzip.h" | ||||
| #include "libparse.h" | ||||
| #include <optional> | ||||
| 
 | ||||
|  | @ -308,13 +309,12 @@ struct ClockgatePass : public Pass { | |||
| 		if (!liberty_files.empty()) { | ||||
| 			LibertyMergedCells merged; | ||||
| 			for (auto path : liberty_files) { | ||||
| 				std::ifstream f; | ||||
| 				f.open(path.c_str()); | ||||
| 				std::istream& f = uncompressed(path); | ||||
| 				if (f.fail()) | ||||
| 					log_cmd_error("Can't open liberty file `%s': %s\n", path.c_str(), strerror(errno)); | ||||
| 				LibertyParser p(f); | ||||
| 				merged.merge(p); | ||||
| 				f.close(); | ||||
| 				delete &f; | ||||
| 			} | ||||
| 			std::tie(pos_icg_desc, neg_icg_desc) = | ||||
| 				find_icgs(merged.cells, dont_use_cells); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue