mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Minor revision to -expose in setundef pass
Adds default value option as -undef when -expose used. Not having set the value mode set can cause the setundef pass to abort.
This commit is contained in:
		
							parent
							
								
									83b41260f6
								
							
						
					
					
						commit
						75c1f8d241
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -162,7 +162,6 @@ struct SetundefPass : public Pass {
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if (args[argidx] == "-expose") {
 | 
								if (args[argidx] == "-expose") {
 | 
				
			||||||
				got_value = true;
 | 
					 | 
				
			||||||
				expose_mode = true;
 | 
									expose_mode = true;
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					@ -212,6 +211,13 @@ struct SetundefPass : public Pass {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		extra_args(args, argidx, design);
 | 
							extra_args(args, argidx, design);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (!got_value && expose_mode) {
 | 
				
			||||||
 | 
								log("Using default as -undef with -expose.\n");
 | 
				
			||||||
 | 
								got_value = true;
 | 
				
			||||||
 | 
								worker.next_bit_mode = MODE_UNDEF;
 | 
				
			||||||
 | 
								worker.next_bit_state = 0;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (expose_mode && !undriven_mode)
 | 
							if (expose_mode && !undriven_mode)
 | 
				
			||||||
			log_cmd_error("Option -expose must be used with option -undriven.\n");
 | 
								log_cmd_error("Option -expose must be used with option -undriven.\n");
 | 
				
			||||||
		if (!got_value)
 | 
							if (!got_value)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue