diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-24 15:10:43 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-24 15:10:43 +0100 |
commit | 1e6836933d8b74d391f816ccdcf71c972f8b1db1 (patch) | |
tree | 60bf4a29c1def59c85854229439a535c58db5c98 /backends | |
parent | 72b35e0b99381df7bda7fdd2811e67ae5cfad80a (diff) | |
download | yosys-1e6836933d8b74d391f816ccdcf71c972f8b1db1.tar.gz yosys-1e6836933d8b74d391f816ccdcf71c972f8b1db1.tar.bz2 yosys-1e6836933d8b74d391f816ccdcf71c972f8b1db1.zip |
Added modelsim support to autotest
Diffstat (limited to 'backends')
-rw-r--r-- | backends/autotest/autotest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/autotest/autotest.cc b/backends/autotest/autotest.cc index c59e2bd17..89ccc3718 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()); |