summaryrefslogtreecommitdiff
path: root/backends/autotest
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-24 15:10:43 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-24 15:10:43 +0100
commit1e6836933d8b74d391f816ccdcf71c972f8b1db1 (patch)
tree60bf4a29c1def59c85854229439a535c58db5c98 /backends/autotest
parent72b35e0b99381df7bda7fdd2811e67ae5cfad80a (diff)
Added modelsim support to autotest
Diffstat (limited to 'backends/autotest')
-rw-r--r--backends/autotest/autotest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/autotest/autotest.cc b/backends/autotest/autotest.cc
index c59e2bd1..89ccc371 100644
--- a/backends/autotest/autotest.cc
+++ b/backends/autotest/autotest.cc
@@ -206,7 +206,7 @@ static void autotest(FILE *f, RTLIL::Design *design)
fprintf(f, "task %s;\n", idy(mod->name, "print_status").c_str());
fprintf(f, "begin\n");
- fprintf(f, "\t$display(\"%%b %%b %%b %%t %%d\", {");
+ fprintf(f, "\t$display(\"#OUT# %%b %%b %%b %%t %%d\", {");
if (signal_in.size())
for (auto it = signal_in.begin(); it != signal_in.end(); it++) {
fprintf(f, "%s %s", it == signal_in.begin() ? "" : ",", it->first.c_str());
@@ -268,17 +268,17 @@ static void autotest(FILE *f, RTLIL::Design *design)
fprintf(f, "task %s;\n", idy(mod->name, "print_header").c_str());
fprintf(f, "begin\n");
- fprintf(f, "\t$display();\n");
+ fprintf(f, "\t$display(\"#OUT#\");\n");
for (auto &hdr : header1)
- fprintf(f, "\t$display(\" %s\");\n", hdr.c_str());
- fprintf(f, "\t$display();\n");
- fprintf(f, "\t$display(\"%s\");\n", header2.c_str());
+ fprintf(f, "\t$display(\"#OUT# %s\");\n", hdr.c_str());
+ fprintf(f, "\t$display(\"#OUT#\");\n");
+ fprintf(f, "\t$display(\"#OUT# %s\");\n", header2.c_str());
fprintf(f, "end\n");
fprintf(f, "endtask\n\n");
fprintf(f, "task %s;\n", idy(mod->name, "test").c_str());
fprintf(f, "begin\n");
- fprintf(f, "\t$display(\"\\n==== %s ====\");\n", idy(mod->name).c_str());
+ fprintf(f, "\t$display(\"#OUT#\\n#OUT# ==== %s ====\");\n", idy(mod->name).c_str());
fprintf(f, "\t%s;\n", idy(mod->name, "reset").c_str());
fprintf(f, "\tfor (i=0; i<%d; i=i+1) begin\n", NUM_ITER);
fprintf(f, "\t\tif (i %% 20 == 0) %s;\n", idy(mod->name, "print_header").c_str());