mirror of
				https://github.com/cclassic/model-ghdl
				synced 2025-11-04 02:49:33 +01:00 
			
		
		
		
	[vsim] Bugfix: convert top level to lower case
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
			
		||||
#include <fstream>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
// #define DEBUG_EN DEBUG_EN
 | 
			
		||||
 #define DEBUG_EN DEBUG_EN
 | 
			
		||||
 | 
			
		||||
using namespace std;
 | 
			
		||||
 | 
			
		||||
@@ -139,6 +139,9 @@ int main(int argc, char **argv) {
 | 
			
		||||
    // -gui work.toplevel(RTL)
 | 
			
		||||
    string temp = "";
 | 
			
		||||
    for (unsigned int i=0; i < top.length(); ++i) {
 | 
			
		||||
        if (top.at(i) >= 'A' && top.at(i) <= 'Z')
 | 
			
		||||
            top.at(i) = top.at(i) - ('A'-'a'); // convert to lower case
 | 
			
		||||
 | 
			
		||||
        if (top.at(i) == '.') {
 | 
			
		||||
            work = temp;
 | 
			
		||||
            temp = "";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user