diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-11-28 17:03:31 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-11-28 17:03:31 (GMT) |
commit | a6313d4ab2005196f376870c9ca945c691948416 (patch) | |
tree | 5345422d235e7c511885601854b6a2923db09e2e /src/uscxml/transform/ChartToVHDL.cpp | |
parent | fcfc842a1ccee7a6b2579889f3236d50849c0679 (diff) | |
download | uscxml-a6313d4ab2005196f376870c9ca945c691948416.zip uscxml-a6313d4ab2005196f376870c9ca945c691948416.tar.gz uscxml-a6313d4ab2005196f376870c9ca945c691948416.tar.bz2 |
Refactored Java into bindings and generated
Diffstat (limited to 'src/uscxml/transform/ChartToVHDL.cpp')
-rw-r--r-- | src/uscxml/transform/ChartToVHDL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/transform/ChartToVHDL.cpp b/src/uscxml/transform/ChartToVHDL.cpp index cbd46ef..9ef2f75 100644 --- a/src/uscxml/transform/ChartToVHDL.cpp +++ b/src/uscxml/transform/ChartToVHDL.cpp @@ -90,7 +90,7 @@ void ChartToVHDL::findEvents() { // Calculate needed bit size for the event fifo // --> |log2(n)| +1 with n is number of events // we do not add +1 because the std_logic_vector startes with 0 - _eventBitSize = ceil(abs(log2(_eventNames.size()))); + _eventBitSize = ceil(std::abs(log2(_eventNames.size()))); _execContent = DOMUtils::inDocumentOrder({ XML_PREFIX(_scxml).str() + "raise", @@ -1605,4 +1605,4 @@ void ChartToVHDL::writeSystemSignalMapping(std::ostream &stream) { } -}
\ No newline at end of file +} |