From 968296dae0fe6f4ee9ea00e6068bfb2402c7cefa Mon Sep 17 00:00:00 2001 From: Makise Kurisu Date: Fri, 10 Apr 2015 22:42:18 +0200 Subject: [PATCH] [vsim] Bugfix: convert top level to lower case --- vsim/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vsim/main.cpp b/vsim/main.cpp index 06b338c..abfe16b 100644 --- a/vsim/main.cpp +++ b/vsim/main.cpp @@ -7,7 +7,7 @@ #include #include -// #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 = "";