From d74eedbb34c2badf079e3d75687e8737d19f47d5 Mon Sep 17 00:00:00 2001 From: Jens Heuschkel Date: Wed, 23 Nov 2016 11:41:14 +0100 Subject: set return statement of tb compatible to ctest --- src/uscxml/transform/ChartToVHDL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12