1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-14 07:29:52 +01:00

[vsim] Bugfix: convert top level to lower case

This commit is contained in:
Makise Kurisu 2015-04-10 22:42:18 +02:00
parent c242857c62
commit 968296dae0

View File

@ -7,7 +7,7 @@
#include <fstream> #include <fstream>
#include <string.h> #include <string.h>
// #define DEBUG_EN DEBUG_EN #define DEBUG_EN DEBUG_EN
using namespace std; using namespace std;
@ -139,6 +139,9 @@ int main(int argc, char **argv) {
// -gui work.toplevel(RTL) // -gui work.toplevel(RTL)
string temp = ""; string temp = "";
for (unsigned int i=0; i < top.length(); ++i) { 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) == '.') { if (top.at(i) == '.') {
work = temp; work = temp;
temp = ""; temp = "";