From 73db12b81aaa276ed702658496b143bb93fb5150 Mon Sep 17 00:00:00 2001 From: Makise Kurisu Date: Tue, 20 Jan 2015 21:03:51 +0100 Subject: [PATCH] Improved readability of output, added -fexplicit to cflags --- vsim/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vsim/main.cpp b/vsim/main.cpp index 07c951b..2f258fd 100644 --- a/vsim/main.cpp +++ b/vsim/main.cpp @@ -6,7 +6,7 @@ #include #include -#define DEBUG_EN DEBUG_EN +//#define DEBUG_EN DEBUG_EN using namespace std; @@ -153,19 +153,23 @@ int main(int argc, char **argv) { //bool ex = false; //while (!ex) { - string cargs = "cd " + string(tempdir) + "; ghdl -m --ieee=synopsys --warn-no-vital-generic --workdir=" + string(tempdir) + " --work=" + work + " " + top; + cout << "Compiling..." << endl; + string cargs = "cd " + string(tempdir) + "; ghdl -m --ieee=synopsys --warn-no-vital-generic -fexplicit --workdir=" + string(tempdir) + " --work=" + work + " " + top; if (run(cargs)) { cerr << "Error: Compilation failed." << endl; run("zenity --error --text \"Compilation failed.\""); } else { + cout << "done." << endl; cargs = ""; string st = getSimulationTime(); if (st != "") { + cout << "Simulating..." << endl; if (run("cd " + string(tempdir) + "; ./" + top + " --stop-time=" + st + " --vcd=" + top + ".vcd")) { cerr << "Error: Simulation failed." << endl; } else { + cout << "==> All done!" << endl; string wv = "gtkwave " + string(tempdir) + "/" + top + ".vcd &"; if (run("pidof gtkwave")) { if (system(wv.c_str())) {