summaryrefslogtreecommitdiffstats
path: root/src/uscxml
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml')
-rw-r--r--src/uscxml/transform/ChartToVHDL.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/transform/ChartToVHDL.cpp b/src/uscxml/transform/ChartToVHDL.cpp
index 071d863..9228a2d 100644
--- a/src/uscxml/transform/ChartToVHDL.cpp
+++ b/src/uscxml/transform/ChartToVHDL.cpp
@@ -421,6 +421,7 @@ void ChartToVHDL::writeTestbench(std::ostream &stream) {
}
}
+ // test observation and exit condition
stream << " -- Test observation" << std::endl;
stream << " process (clk)" << std::endl;
stream << " variable count_clk : integer := 0;" << std::endl;
@@ -433,7 +434,7 @@ void ChartToVHDL::writeTestbench(std::ostream &stream) {
stream << "_sig = '1') report \"Complted with errors\" severity error;" << std::endl;
}
stream << " -- stop simulation" << std::endl;
- stream << " finish(1);" << std::endl;
+ stream << " finish(0);" << std::endl; // use 0 for ctest
// -- For both STOP and FINISH the STATUS values are those used
// -- in the Verilog $finish task
// -- 0 prints nothing