Changed to GHDL's internal format. Yey enum types

This commit is contained in:
Markus Koch 2015-04-09 08:20:12 +02:00
parent 5cad19bc7d
commit 1c9e11ea55
1 changed files with 3 additions and 3 deletions

View File

@ -177,14 +177,14 @@ int main(int argc, char **argv) {
if (st != "") { if (st != "") {
cout << "Simulating..." << endl; cout << "Simulating..." << endl;
#ifdef DEBUG_EN #ifdef DEBUG_EN
cout << "RUN: " << "cd " + string(tempdir) + "; ./" + top + " " + wvargs + " --stop-time=" + st + " --vcd=" + top + ".vcd" << endl; cout << "RUN: " << "cd " + string(tempdir) + "; ./" + top + " " + wvargs + " --stop-time=" + st + " --wave=" + top + ".ghw" << endl;
#endif #endif
if (run("cd " + string(tempdir) + "; ./" + top + " " + wvargs + " --stop-time=" + st + " --vcd=" + top + ".vcd")) { if (run("cd " + string(tempdir) + "; ./" + top + " " + wvargs + " --stop-time=" + st + " --wave=" + top + ".ghw")) {
cerr << "Error: Simulation failed." << endl; cerr << "Error: Simulation failed." << endl;
} }
else { else {
cout << "==> All done!" << endl; cout << "==> All done!" << endl;
string wv = "gtkwave " + string(tempdir) + "/" + top + ".vcd &"; string wv = "gtkwave " + string(tempdir) + "/" + top + ".ghw &";
if (run("pidof gtkwave")) { if (run("pidof gtkwave")) {
if (system(wv.c_str())) { if (system(wv.c_str())) {
cerr << "Error: GtkWave failed."; cerr << "Error: GtkWave failed.";