mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	ice40_opt bugfix
This commit is contained in:
		
							parent
							
								
									310fde197e
								
							
						
					
					
						commit
						9d067fecea
					
				
					 2 changed files with 4 additions and 6 deletions
				
			
		|  | @ -57,11 +57,9 @@ static void run_ice40_opts(Module *module) | ||||||
| 
 | 
 | ||||||
| 			if (count_zeros >= 2) | 			if (count_zeros >= 2) | ||||||
| 				replacement_output = State::S0; | 				replacement_output = State::S0; | ||||||
| 
 | 			else if (count_ones >= 2) | ||||||
| 			if (count_ones >= 2) |  | ||||||
| 				replacement_output = State::S1; | 				replacement_output = State::S1; | ||||||
| 
 | 			else if (GetSize(non_const_inputs) == 1) | ||||||
| 			if (GetSize(non_const_inputs) == 1) |  | ||||||
| 				replacement_output = non_const_inputs; | 				replacement_output = non_const_inputs; | ||||||
| 
 | 
 | ||||||
| 			if (GetSize(replacement_output)) { | 			if (GetSize(replacement_output)) { | ||||||
|  |  | ||||||
|  | @ -88,7 +88,7 @@ struct SynthIce40Pass : public Pass { | ||||||
| 		log("        opt -undriven -fine\n"); | 		log("        opt -undriven -fine\n"); | ||||||
| 		log("        techmap -map +/techmap.v [-map +/ice40/arith_map.v]\n"); | 		log("        techmap -map +/techmap.v [-map +/ice40/arith_map.v]\n"); | ||||||
| 		log("        abc -dff     (only if -retime)\n"); | 		log("        abc -dff     (only if -retime)\n"); | ||||||
| 		log("        opt -fast\n"); | 		log("        ice40_opt\n"); | ||||||
| 		log("\n"); | 		log("\n"); | ||||||
| 		log("    map_ffs:\n"); | 		log("    map_ffs:\n"); | ||||||
| 		log("        dff2dffe -direct-match $_DFF_*\n"); | 		log("        dff2dffe -direct-match $_DFF_*\n"); | ||||||
|  | @ -96,7 +96,7 @@ struct SynthIce40Pass : public Pass { | ||||||
| 		log("        opt_const -mux_undef\n"); | 		log("        opt_const -mux_undef\n"); | ||||||
| 		log("        simplemap\n"); | 		log("        simplemap\n"); | ||||||
| 		log("        ice40_ffssr\n"); | 		log("        ice40_ffssr\n"); | ||||||
| 		log("        clean\n"); | 		log("        ice40_opt -full\n"); | ||||||
| 		log("\n"); | 		log("\n"); | ||||||
| 		log("    map_luts:\n"); | 		log("    map_luts:\n"); | ||||||
| 		log("        abc -lut 4\n"); | 		log("        abc -lut 4\n"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue