mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Merge pull request #2450 from nitz/sim-vcd-filename
Add rewrite_filename for sim -vcd argument.
This commit is contained in:
		
						commit
						2a39c785a2
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -810,7 +810,9 @@ struct SimPass : public Pass {
 | 
			
		|||
		size_t argidx;
 | 
			
		||||
		for (argidx = 1; argidx < args.size(); argidx++) {
 | 
			
		||||
			if (args[argidx] == "-vcd" && argidx+1 < args.size()) {
 | 
			
		||||
				worker.vcdfile.open(args[++argidx].c_str());
 | 
			
		||||
				std::string vcd_filename = args[++argidx];
 | 
			
		||||
				rewrite_filename(vcd_filename);
 | 
			
		||||
				worker.vcdfile.open(vcd_filename.c_str());
 | 
			
		||||
				continue;
 | 
			
		||||
			}
 | 
			
		||||
			if (args[argidx] == "-n" && argidx+1 < args.size()) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue