mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge pull request #3756 from YosysHQ/krys/sim_writeback
This commit is contained in:
		
						commit
						266036c6f9
					
				
					 1 changed files with 5 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -1162,6 +1162,11 @@ struct SimWorker : SimShared
 | 
			
		|||
		}
 | 
			
		||||
		for(auto& writer : outputfiles)
 | 
			
		||||
			writer->write(use_signal);
 | 
			
		||||
		
 | 
			
		||||
		if (writeback) {
 | 
			
		||||
			pool<Module*> wbmods;
 | 
			
		||||
			top->writeback(wbmods);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void update(bool gclk)
 | 
			
		||||
| 
						 | 
				
			
			@ -1265,11 +1270,6 @@ struct SimWorker : SimShared
 | 
			
		|||
		register_output_step(10*numcycles + 2);
 | 
			
		||||
 | 
			
		||||
		write_output_files();
 | 
			
		||||
 | 
			
		||||
		if (writeback) {
 | 
			
		||||
			pool<Module*> wbmods;
 | 
			
		||||
			top->writeback(wbmods);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void run_cosim_fst(Module *topmod, int numcycles)
 | 
			
		||||
| 
						 | 
				
			
			@ -1394,11 +1394,6 @@ struct SimWorker : SimShared
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		write_output_files();
 | 
			
		||||
 | 
			
		||||
		if (writeback) {
 | 
			
		||||
			pool<Module*> wbmods;
 | 
			
		||||
			top->writeback(wbmods);
 | 
			
		||||
		}
 | 
			
		||||
		delete fst;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue