forked from libre-chip/fayalite
		
	formal: add workaround for wires disappearing because yosys optimizes them out
This commit is contained in:
		
							parent
							
								
									3939ce2360
								
							
						
					
					
						commit
						3d0f95cfe5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -687,7 +687,11 @@ impl FormalArgs {
 | 
			
		|||
            }
 | 
			
		||||
            writeln!(retval, "read_verilog -sv -formal \"{verilog_file}\"").unwrap();
 | 
			
		||||
        }
 | 
			
		||||
        writeln!(retval, "prep -top {top_module}").unwrap();
 | 
			
		||||
        // workaround for wires disappearing -- set `keep` on all wires
 | 
			
		||||
        writeln!(retval, "hierarchy -top {top_module}").unwrap();
 | 
			
		||||
        writeln!(retval, "proc").unwrap();
 | 
			
		||||
        writeln!(retval, "setattr -set keep 1 w:\\*").unwrap();
 | 
			
		||||
        writeln!(retval, "prep").unwrap();
 | 
			
		||||
        Ok(retval)
 | 
			
		||||
    }
 | 
			
		||||
    fn run_impl(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue