mirror of
				https://github.com/cclassic/model-ghdl
				synced 2025-11-04 02:49:33 +01:00 
			
		
		
		
	Added tempdir caching for vsim
This commit is contained in:
		@@ -3,6 +3,7 @@
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <vector>
 | 
			
		||||
#include <fstream>
 | 
			
		||||
//#include <regex>
 | 
			
		||||
 | 
			
		||||
//#define DEBUG_EN DEBUG_EN
 | 
			
		||||
@@ -149,6 +150,13 @@ int main(int argc, char **argv)
 | 
			
		||||
        return 2;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Write temp path to /tmp
 | 
			
		||||
    ofstream myfile;
 | 
			
		||||
    myfile.open ("/tmp/workdir-ghdl");
 | 
			
		||||
    myfile << tempdir;
 | 
			
		||||
    myfile.flush();
 | 
			
		||||
    myfile.close();
 | 
			
		||||
 | 
			
		||||
    string cargs = "ghdl -i --ieee=synopsys --warn-no-vital-generic --workdir=" + string(tempdir) + " --work=" + work + " " + vhdl + " 2>&1";
 | 
			
		||||
    string sargs = "ghdl -s --ieee=synopsys --warn-no-vital-generic --workdir=" + string(tempdir) + " --work=" + work + " " + vhdl + " 2>&1";
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user