clang-format {Testbench Utils Package Library Expression ErrorReporting} header files
diff --git a/SVIncCompil/ErrorReporting/Error.h b/SVIncCompil/ErrorReporting/Error.h
index 4eefce2..7b58034 100644
--- a/SVIncCompil/ErrorReporting/Error.h
+++ b/SVIncCompil/ErrorReporting/Error.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Error.h
* Author: alain
*
@@ -30,43 +30,34 @@
namespace SURELOG {
-
-
class ErrorContainer;
class Error {
-public:
- friend ErrorContainer;
- Error(ErrorDefinition::ErrorType errorId, Location& loc, std::vector<Location>* extraLocs = NULL);
- Error(ErrorDefinition::ErrorType errorId, Location& loc, Location& extra);
- Error(ErrorDefinition::ErrorType errorId, std::vector<Location>& locations);
- bool operator==(Error& rhs) ;
- bool operator<( const Error& rhs ) const;
- struct compare {
- bool operator()( const Error& e1, const Error& e2) const
- {
- return e1 < e2;
- }
-
- };
-
- /* Do not create Copy constructor, use default*/
- //Error(const Error& orig);
- virtual ~Error();
- std::vector<Location>& getLocations() { return m_locations; }
- ErrorDefinition::ErrorType getType() { return m_errorId; }
-
-private:
- std::vector<Location> m_locations;
- ErrorDefinition::ErrorType m_errorId;
- bool m_reported;
- bool m_waived;
+ public:
+ friend ErrorContainer;
+ Error(ErrorDefinition::ErrorType errorId, Location& loc,
+ std::vector<Location>* extraLocs = NULL);
+ Error(ErrorDefinition::ErrorType errorId, Location& loc, Location& extra);
+ Error(ErrorDefinition::ErrorType errorId, std::vector<Location>& locations);
+ bool operator==(Error& rhs);
+ bool operator<(const Error& rhs) const;
+ struct compare {
+ bool operator()(const Error& e1, const Error& e2) const { return e1 < e2; }
+ };
+
+ /* Do not create Copy constructor, use default*/
+ // Error(const Error& orig);
+ virtual ~Error();
+ std::vector<Location>& getLocations() { return m_locations; }
+ ErrorDefinition::ErrorType getType() { return m_errorId; }
+
+ private:
+ std::vector<Location> m_locations;
+ ErrorDefinition::ErrorType m_errorId;
+ bool m_reported;
+ bool m_waived;
};
-};
-
+}; // namespace SURELOG
#endif /* ERROR_H */
-
-
-
diff --git a/SVIncCompil/ErrorReporting/ErrorContainer.h b/SVIncCompil/ErrorReporting/ErrorContainer.h
index 7645622..857f01d 100644
--- a/SVIncCompil/ErrorReporting/ErrorContainer.h
+++ b/SVIncCompil/ErrorReporting/ErrorContainer.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ErrorContainer.h
* Author: alain
*
@@ -31,52 +31,62 @@
#include "Python.h"
namespace SURELOG {
-
+
class CommandLineParser;
class ErrorContainer {
-public:
-
- class Stats {
- public:
- Stats() : nbFatal(0), nbError(0), nbWarning(0), nbNote(0), nbInfo(0) {};
- Stats& operator += (Stats& r) { nbFatal+= r.nbFatal; nbError+=r.nbError;
- nbWarning+=r.nbWarning; nbNote+=r.nbNote;
- nbInfo+=r.nbInfo; return *this;}
- int nbFatal; int nbError; int nbWarning; int nbNote; int nbInfo;
- };
-
- ErrorContainer(SymbolTable* symbolTable);
- void regiterCmdLine(CommandLineParser* clp) { m_clp = clp; }
- void init();
- Error& addError(Error& error, bool showDuplicates = false, bool reentrantPython = true);
- ErrorContainer(const ErrorContainer& orig);
- virtual ~ErrorContainer();
- std::vector<Error>& getErrors() { return m_errors; }
- bool printMessages(bool muteStdout = false);
- bool printMessage(Error& error, bool muteStdout = false);
- bool printStats(Stats stats, bool muteStdout = false);
- bool printToLogFile(std::string report);
- bool hasFatalErrors();
- Stats getErrorStats();
- void appendErrors(ErrorContainer&);
- SymbolTable* getSymbolTable() { return m_symbolTable; }
- std::tuple<std::string, bool, bool> createErrorMessage(Error& error, bool reentrantPython = true);
- void setPythonInterp(PyThreadState* interpState) { m_interpState = interpState; }
-private:
- std::pair<std::string, bool> createReport_();
- std::pair<std::string, bool> createReport_(Error& error);
- std::vector<Error> m_errors;
- std::set<std::string> m_errorSet;
- CommandLineParser* m_clp;
- bool m_reportedFatalErrorLogFile;
- SymbolTable* m_symbolTable;
- PyThreadState* m_interpState;
+ public:
+ class Stats {
+ public:
+ Stats() : nbFatal(0), nbError(0), nbWarning(0), nbNote(0), nbInfo(0){};
+ Stats& operator+=(Stats& r) {
+ nbFatal += r.nbFatal;
+ nbError += r.nbError;
+ nbWarning += r.nbWarning;
+ nbNote += r.nbNote;
+ nbInfo += r.nbInfo;
+ return *this;
+ }
+ int nbFatal;
+ int nbError;
+ int nbWarning;
+ int nbNote;
+ int nbInfo;
+ };
+
+ ErrorContainer(SymbolTable* symbolTable);
+ void regiterCmdLine(CommandLineParser* clp) { m_clp = clp; }
+ void init();
+ Error& addError(Error& error, bool showDuplicates = false,
+ bool reentrantPython = true);
+ ErrorContainer(const ErrorContainer& orig);
+ virtual ~ErrorContainer();
+ std::vector<Error>& getErrors() { return m_errors; }
+ bool printMessages(bool muteStdout = false);
+ bool printMessage(Error& error, bool muteStdout = false);
+ bool printStats(Stats stats, bool muteStdout = false);
+ bool printToLogFile(std::string report);
+ bool hasFatalErrors();
+ Stats getErrorStats();
+ void appendErrors(ErrorContainer&);
+ SymbolTable* getSymbolTable() { return m_symbolTable; }
+ std::tuple<std::string, bool, bool> createErrorMessage(
+ Error& error, bool reentrantPython = true);
+ void setPythonInterp(PyThreadState* interpState) {
+ m_interpState = interpState;
+ }
+
+ private:
+ std::pair<std::string, bool> createReport_();
+ std::pair<std::string, bool> createReport_(Error& error);
+ std::vector<Error> m_errors;
+ std::set<std::string> m_errorSet;
+ CommandLineParser* m_clp;
+ bool m_reportedFatalErrorLogFile;
+ SymbolTable* m_symbolTable;
+ PyThreadState* m_interpState;
};
-};
+}; // namespace SURELOG
#endif /* ERRORCONTAINER_H */
-
-
-
diff --git a/SVIncCompil/ErrorReporting/ErrorDefinition.h b/SVIncCompil/ErrorReporting/ErrorDefinition.h
index 0effdac..2e5a6f8 100644
--- a/SVIncCompil/ErrorReporting/ErrorDefinition.h
+++ b/SVIncCompil/ErrorReporting/ErrorDefinition.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ErrorDefinition.h
* Author: alain
*
@@ -28,203 +28,198 @@
namespace SURELOG {
- class ErrorDefinition {
- public:
+class ErrorDefinition {
+ public:
+ typedef enum { FATAL, ERROR, WARNING, INFO, NOTE } ErrorSeverity;
- typedef enum {
- FATAL,
- ERROR,
- WARNING,
- INFO,
- NOTE
- } ErrorSeverity;
+ typedef enum {
+ CMD,
+ PP,
+ PARSE,
+ PYTH,
+ LANG,
+ SEMA,
+ COMP,
+ ELAB,
+ LIB,
+ LINT,
+ USER,
+ } ErrorCategory;
- typedef enum {
- CMD,
- PP,
- PARSE,
- PYTH,
- LANG,
- SEMA,
- COMP,
- ELAB,
- LIB,
- LINT,
- USER,
- } ErrorCategory;
+ typedef enum {
+ NO_ERROR_MESSAGE = 0,
+ CMD_FILE_DOES_NOT_EXIST = 1,
+ CMD_CANNOT_OPEN_FILE_FOR_READ = 2,
+ CMD_CANNOT_OPEN_FILE_FOR_WRITE = 3,
+ CMD_DASH_F_FILE_DOES_NOT_EXIST = 4,
+ CMD_INCLUDE_PATH_DOES_NOT_EXIST = 5,
+ CMD_LIBRARY_FILE_DOES_NOT_EXIST = 6,
+ CMD_LIBRARY_PATH_DOES_NOT_EXIST = 7,
+ CMD_VERILOG_FILE_DOES_NOT_EXIST = 8,
+ CMD_PLUS_ARG_IGNORED = 9,
+ CMD_MINUS_ARG_IGNORED = 10,
+ CMD_DEBUG_MISSING_LEVEL = 11,
+ CMD_DEBUG_INCORRECT_LEVEL = 12,
+ CMD_LIBRARY_FILE_MISSING_FILE = 13,
+ CMD_LIBRARY_PATH_MISSING_PATH = 14,
+ CMD_LOG_FILE_MISSING_FILE = 15,
+ CMD_PP_FILE_MISSING_FILE = 16,
+ CMD_MT_MISSING_LEVEL = 17,
+ CMD_MT_INCORRECT_LEVEL = 19,
+ CMD_SEPARATE_COMPILATION_UNIT_ON = 20,
+ CMD_PP_FILE_MISSING_ODIR = 21,
+ CMD_PP_CANNOT_CREATE_OUTPUT_DIR = 22,
+ CMD_CREATING_LOG_FILE = 23,
+ CMD_NUMBER_THREADS = 24,
+ CMD_PP_CANNOT_CREATE_CACHE_DIR = 25,
+ CMD_TIMESCALE_MISSING_SETTING = 26,
+ CMD_SPLIT_FILE_MISSING_SIZE = 27,
+ CMD_UNDEFINED_CONFIG = 28,
+ CMD_USING_GLOBAL_TIMESCALE = 29,
+ PP_CANNOT_OPEN_FILE = 100,
+ PP_CANNOT_OPEN_INCLUDE_FILE = 101,
+ PP_UNKOWN_MACRO = 102,
+ PP_UNDEF_UNKOWN_MACRO = 103,
+ PP_OPEN_FILE_FOR_WRITE = 104,
+ PP_MULTIPLY_DEFINED_MACRO = 105,
+ PP_SYNTAX_ERROR = 106,
+ PP_TOO_MANY_ARGS_MACRO = 107,
+ PP_MACRO_SYNTAX_ERROR = 108,
+ PP_MACRO_NO_DEFAULT_VALUE = 109,
+ PP_MACRO_PARENTHESIS_NEEDED = 110,
+ PP_MACRO_NAME_RESERVED = 111,
+ PP_MACRO_HAS_SPACE_BEFORE_ARGS = 112,
+ PP_MACRO_UNUSED_ARGUMENT = 113,
+ PP_MACRO_UNDEFINED_ARGUMENT = 114,
+ PP_RECURSIVE_MACRO_DEFINITION = 115,
+ PP_UNTERMINATED_STRING = 116,
+ PP_UNESCAPED_CHARACTER_IN_STRING = 117,
+ PP_UNRECOGNIZED_ESCAPED_SEQUENCE = 118,
+ PP_INVALID_INCLUDE_FILENAME = 119,
+ PP_ILLEGAL_DIRECTIVE_IN_DESIGN_ELEMENT = 120,
+ PP_CANNOT_CREATE_DIRECTORY = 121,
+ PP_PROCESSING_SOURCE_FILE = 122,
+ PP_PROCESSING_INCLUDE_FILE = 123,
+ PP_ILLEGAL_DIRECTIVE_ELSEIF = 124,
+ PP_CANNOT_READ_FILE_CONTENT = 125,
+ PP_RECURSIVE_INCLUDE_DIRECTIVE = 126,
+ PA_CANNOT_SPLIT_FILE = 200,
+ PA_PROCESSING_SOURCE_FILE = 201,
+ PA_CANNOT_OPEN_FILE = 202,
+ PA_UNKOWN_MACRO = 203,
+ PA_MAX_LENGTH_IDENTIFIER = 204,
+ PA_NOTIMESCALE_INFO = 205,
+ PA_MISSING_TIMEUNIT = 206,
+ PA_SYNTAX_ERROR = 207,
+ PA_RESERVED_KEYWORD = 208,
+ PA_UNSUPPORTED_KEYWORD_LIST = 209,
+ COMP_COMPILE = 300,
+ COMP_COMPILE_PACKAGE = 301,
+ COMP_COMPILE_CLASS = 302,
+ COMP_COMPILE_MODULE = 303,
+ COMP_COMPILE_INTERFACE = 304,
+ COMP_COMPILE_UDP = 305,
+ COMP_COMPILE_PROGRAM = 306,
+ COMP_COMPILE_CHECKER = 307,
+ COMP_UNDEFINED_INTERFACE = 308,
+ COMP_PORT_MISSING_TYPE = 309,
+ COMP_PORT_MISSING_DIRECTION = 310,
+ COMP_MODPORT_UNDEFINED_PORT = 311,
+ COMP_MODPORT_UNDEFINED_CLOCKING_BLOCK = 312,
+ COMP_NO_MODPORT_IN_GENERATE = 313,
+ COMP_PROGRAM_OBSOLETE_USAGE = 314,
+ COMP_UNDEFINED_CLASS = 315,
+ COMP_UNDEFINED_PACKAGE = 316,
+ COMP_UNDEFINED_TYPE = 317,
+ COMP_MULTIPLY_DEFINED_PROPERTY = 318,
+ COMP_MULTIPLY_DEFINED_CLASS = 319,
+ COMP_MULTIPLY_DEFINED_FUNCTION = 320,
+ COMP_MULTIPLY_DEFINED_TASK = 321,
+ COMP_MULTIPLY_DEFINED_CONSTRAINT = 322,
+ COMP_MULTIPLY_DEFINED_TYPEDEF = 323,
+ COMP_MULTIPLY_DEFINED_INNER_CLASS = 324,
+ COMP_MULTIPLY_DEFINED_COVERGROUP = 325,
+ COMP_MULTIPLY_DEFINED_PARAMETER = 326,
+ COMP_UNDEFINED_VARIABLE = 327,
+ COMP_UNDEFINED_BASE_CLASS = 328,
+ COMP_MULTIPLY_DEFINED_PACKAGE = 329,
+ COMP_INCOMPATIBLE_TYPES = 330,
+ COMP_MULTIPLY_DEFINED_VARIABLE = 331,
+ COMP_NO_METHOD_FOR_TYPE = 332,
+ COMP_UNDEFINED_SYSTEM_FUNCTION = 333,
+ COMP_MULTIPLY_DEFINED_DESIGN_UNIT = 334,
+ PY_PROCESSING_SOURCE_FILE = 400,
+ PY_NO_PYTHON_LISTENER_FOUND = 401,
+ ELAB_NO_MODULE_DEFINITION = 500,
+ ELAB_NO_UDP_DEFINITION = 501,
+ ELAB_NO_INTERFACE_DEFINITION = 502,
+ ELAB_TOP_LEVEL_MODULE = 503,
+ ELAB_MULTIPLE_TOP_LEVEL_MODULES = 504,
+ ELAB_MULTIPLY_DEFINED_MODULE = 505,
+ ELAB_NO_TOP_LEVEL_MODULE = 506,
+ ELAB_INSTANTIATION_LOOP = 507,
+ ELAB_NB_TOP_LEVEL_MODULES = 508,
+ ELAB_MAX_INSTANCE_DEPTH = 509,
+ ELAB_NB_INSTANCES = 510,
+ ELAB_NB_LEAF_INSTANCES = 511,
+ ELAB_NB_UNDEF_MODULES = 512,
+ ELAB_NB_UNDEF_INSTANCES = 513,
+ ELAB_UNDEF_VARIABLE = 514,
+ ELAB_UNMATCHED_DEFPARAM = 515,
+ ELAB_DEFPARAM_OUTSIDE_SCOPE = 516,
+ ELAB_MULTI_DEFPARAM_ON_OBJECT = 517,
+ ELAB_UNDEFINED_CONFIG = 518,
+ ELAB_CONFIGURATION_USED = 519,
+ ELAB_CONFIGURATION_IGNORED = 520,
+ ELAB_USE_CLAUSE_IGNORED = 521,
+ ELAB_SCOPE_PATH = 522,
+ ELAB_INSTANCE_PATH = 523,
+ ELAB_INTERFACE_INSTANCE_PATH = 524,
+ ELAB_PROGRAM_INSTANCE_PATH = 525,
+ ELAB_ELABORATING_DESIGN = 526,
+ ELAB_ELABORATING_TESTBENCH = 527,
+ ELAB_UNDEFINED_PACKAGE = 528,
+ ELAB_OUT_OF_RANGE_PARAM_INDEX = 530,
+ LIB_FILE_MAPS_TO_MULTIPLE_LIBS = 600,
+ } ErrorType;
- typedef enum {
- NO_ERROR_MESSAGE = 0,
- CMD_FILE_DOES_NOT_EXIST = 1,
- CMD_CANNOT_OPEN_FILE_FOR_READ = 2,
- CMD_CANNOT_OPEN_FILE_FOR_WRITE = 3,
- CMD_DASH_F_FILE_DOES_NOT_EXIST = 4,
- CMD_INCLUDE_PATH_DOES_NOT_EXIST = 5,
- CMD_LIBRARY_FILE_DOES_NOT_EXIST = 6,
- CMD_LIBRARY_PATH_DOES_NOT_EXIST = 7,
- CMD_VERILOG_FILE_DOES_NOT_EXIST = 8,
- CMD_PLUS_ARG_IGNORED = 9,
- CMD_MINUS_ARG_IGNORED = 10,
- CMD_DEBUG_MISSING_LEVEL = 11,
- CMD_DEBUG_INCORRECT_LEVEL = 12,
- CMD_LIBRARY_FILE_MISSING_FILE = 13,
- CMD_LIBRARY_PATH_MISSING_PATH = 14,
- CMD_LOG_FILE_MISSING_FILE = 15,
- CMD_PP_FILE_MISSING_FILE = 16,
- CMD_MT_MISSING_LEVEL = 17,
- CMD_MT_INCORRECT_LEVEL = 19,
- CMD_SEPARATE_COMPILATION_UNIT_ON = 20,
- CMD_PP_FILE_MISSING_ODIR = 21,
- CMD_PP_CANNOT_CREATE_OUTPUT_DIR = 22,
- CMD_CREATING_LOG_FILE = 23,
- CMD_NUMBER_THREADS = 24,
- CMD_PP_CANNOT_CREATE_CACHE_DIR = 25,
- CMD_TIMESCALE_MISSING_SETTING = 26,
- CMD_SPLIT_FILE_MISSING_SIZE = 27,
- CMD_UNDEFINED_CONFIG = 28,
- CMD_USING_GLOBAL_TIMESCALE = 29,
- PP_CANNOT_OPEN_FILE = 100,
- PP_CANNOT_OPEN_INCLUDE_FILE = 101,
- PP_UNKOWN_MACRO = 102,
- PP_UNDEF_UNKOWN_MACRO = 103,
- PP_OPEN_FILE_FOR_WRITE = 104,
- PP_MULTIPLY_DEFINED_MACRO = 105,
- PP_SYNTAX_ERROR = 106,
- PP_TOO_MANY_ARGS_MACRO = 107,
- PP_MACRO_SYNTAX_ERROR = 108,
- PP_MACRO_NO_DEFAULT_VALUE = 109,
- PP_MACRO_PARENTHESIS_NEEDED = 110,
- PP_MACRO_NAME_RESERVED = 111,
- PP_MACRO_HAS_SPACE_BEFORE_ARGS = 112,
- PP_MACRO_UNUSED_ARGUMENT = 113,
- PP_MACRO_UNDEFINED_ARGUMENT = 114,
- PP_RECURSIVE_MACRO_DEFINITION = 115,
- PP_UNTERMINATED_STRING = 116,
- PP_UNESCAPED_CHARACTER_IN_STRING = 117,
- PP_UNRECOGNIZED_ESCAPED_SEQUENCE = 118,
- PP_INVALID_INCLUDE_FILENAME = 119,
- PP_ILLEGAL_DIRECTIVE_IN_DESIGN_ELEMENT = 120,
- PP_CANNOT_CREATE_DIRECTORY = 121,
- PP_PROCESSING_SOURCE_FILE = 122,
- PP_PROCESSING_INCLUDE_FILE = 123,
- PP_ILLEGAL_DIRECTIVE_ELSEIF = 124,
- PP_CANNOT_READ_FILE_CONTENT = 125,
- PP_RECURSIVE_INCLUDE_DIRECTIVE = 126,
- PA_CANNOT_SPLIT_FILE = 200,
- PA_PROCESSING_SOURCE_FILE = 201,
- PA_CANNOT_OPEN_FILE = 202,
- PA_UNKOWN_MACRO = 203,
- PA_MAX_LENGTH_IDENTIFIER = 204,
- PA_NOTIMESCALE_INFO = 205,
- PA_MISSING_TIMEUNIT = 206,
- PA_SYNTAX_ERROR = 207,
- PA_RESERVED_KEYWORD = 208,
- PA_UNSUPPORTED_KEYWORD_LIST = 209,
- COMP_COMPILE = 300,
- COMP_COMPILE_PACKAGE = 301,
- COMP_COMPILE_CLASS = 302,
- COMP_COMPILE_MODULE = 303,
- COMP_COMPILE_INTERFACE = 304,
- COMP_COMPILE_UDP = 305,
- COMP_COMPILE_PROGRAM = 306,
- COMP_COMPILE_CHECKER = 307,
- COMP_UNDEFINED_INTERFACE = 308,
- COMP_PORT_MISSING_TYPE = 309,
- COMP_PORT_MISSING_DIRECTION = 310,
- COMP_MODPORT_UNDEFINED_PORT = 311,
- COMP_MODPORT_UNDEFINED_CLOCKING_BLOCK = 312,
- COMP_NO_MODPORT_IN_GENERATE = 313,
- COMP_PROGRAM_OBSOLETE_USAGE = 314,
- COMP_UNDEFINED_CLASS = 315,
- COMP_UNDEFINED_PACKAGE = 316,
- COMP_UNDEFINED_TYPE = 317,
- COMP_MULTIPLY_DEFINED_PROPERTY = 318,
- COMP_MULTIPLY_DEFINED_CLASS = 319,
- COMP_MULTIPLY_DEFINED_FUNCTION = 320,
- COMP_MULTIPLY_DEFINED_TASK = 321,
- COMP_MULTIPLY_DEFINED_CONSTRAINT = 322,
- COMP_MULTIPLY_DEFINED_TYPEDEF = 323,
- COMP_MULTIPLY_DEFINED_INNER_CLASS = 324,
- COMP_MULTIPLY_DEFINED_COVERGROUP = 325,
- COMP_MULTIPLY_DEFINED_PARAMETER = 326,
- COMP_UNDEFINED_VARIABLE = 327,
- COMP_UNDEFINED_BASE_CLASS = 328,
- COMP_MULTIPLY_DEFINED_PACKAGE = 329,
- COMP_INCOMPATIBLE_TYPES = 330,
- COMP_MULTIPLY_DEFINED_VARIABLE = 331,
- COMP_NO_METHOD_FOR_TYPE = 332,
- COMP_UNDEFINED_SYSTEM_FUNCTION = 333,
- COMP_MULTIPLY_DEFINED_DESIGN_UNIT= 334,
- PY_PROCESSING_SOURCE_FILE = 400,
- PY_NO_PYTHON_LISTENER_FOUND = 401,
- ELAB_NO_MODULE_DEFINITION = 500,
- ELAB_NO_UDP_DEFINITION = 501,
- ELAB_NO_INTERFACE_DEFINITION = 502,
- ELAB_TOP_LEVEL_MODULE = 503,
- ELAB_MULTIPLE_TOP_LEVEL_MODULES = 504,
- ELAB_MULTIPLY_DEFINED_MODULE = 505,
- ELAB_NO_TOP_LEVEL_MODULE = 506,
- ELAB_INSTANTIATION_LOOP = 507,
- ELAB_NB_TOP_LEVEL_MODULES = 508,
- ELAB_MAX_INSTANCE_DEPTH = 509,
- ELAB_NB_INSTANCES = 510,
- ELAB_NB_LEAF_INSTANCES = 511,
- ELAB_NB_UNDEF_MODULES = 512,
- ELAB_NB_UNDEF_INSTANCES = 513,
- ELAB_UNDEF_VARIABLE = 514,
- ELAB_UNMATCHED_DEFPARAM = 515,
- ELAB_DEFPARAM_OUTSIDE_SCOPE = 516,
- ELAB_MULTI_DEFPARAM_ON_OBJECT = 517,
- ELAB_UNDEFINED_CONFIG = 518,
- ELAB_CONFIGURATION_USED = 519,
- ELAB_CONFIGURATION_IGNORED = 520,
- ELAB_USE_CLAUSE_IGNORED = 521,
- ELAB_SCOPE_PATH = 522,
- ELAB_INSTANCE_PATH = 523,
- ELAB_INTERFACE_INSTANCE_PATH = 524,
- ELAB_PROGRAM_INSTANCE_PATH = 525,
- ELAB_ELABORATING_DESIGN = 526,
- ELAB_ELABORATING_TESTBENCH = 527,
- ELAB_UNDEFINED_PACKAGE = 528,
- ELAB_OUT_OF_RANGE_PARAM_INDEX = 530,
- LIB_FILE_MAPS_TO_MULTIPLE_LIBS = 600,
- } ErrorType;
+ class ErrorInfo {
+ public:
+ ErrorInfo(ErrorSeverity severity, ErrorCategory category, std::string s,
+ std::string extra)
+ : m_severity(severity),
+ m_category(category),
+ m_errorText(s),
+ m_extraText(extra) {}
+ ErrorSeverity m_severity;
+ ErrorCategory m_category;
+ std::string m_errorText;
+ std::string m_extraText;
+ };
- class ErrorInfo {
- public:
+ static bool init();
- ErrorInfo(ErrorSeverity severity, ErrorCategory category, std::string s, std::string extra)
- : m_severity(severity), m_category(category), m_errorText(s), m_extraText(extra) {
- }
- ErrorSeverity m_severity;
- ErrorCategory m_category;
- std::string m_errorText;
- std::string m_extraText;
- };
+ static const std::map<ErrorType, ErrorInfo>& getErrorInfoMap() {
+ return m_errorInfoMap;
+ }
- static bool init();
+ static ErrorType getErrorType(std::string errorId);
+ static ErrorSeverity getErrorSeverity(std::string errorSeverity);
+ static std::string getCategoryName(ErrorCategory caterory);
+ static ErrorCategory getCategory(std::string);
- static const std::map<ErrorType, ErrorInfo>& getErrorInfoMap() {
- return m_errorInfoMap;
- }
-
- static ErrorType getErrorType(std::string errorId);
- static ErrorSeverity getErrorSeverity(std::string errorSeverity);
- static std::string getCategoryName(ErrorCategory caterory);
- static ErrorCategory getCategory(std::string);
-
- static void setSeverity(ErrorType type, ErrorSeverity severity);
- static void rec(ErrorType type, ErrorSeverity severity, ErrorCategory category, std::string text, std::string extraText = "");
- private:
- ErrorDefinition();
- ErrorDefinition(const ErrorDefinition& orig);
- virtual ~ErrorDefinition();
- static std::map<ErrorType, ErrorInfo> m_errorInfoMap;
- };
+ static void setSeverity(ErrorType type, ErrorSeverity severity);
+ static void rec(ErrorType type, ErrorSeverity severity,
+ ErrorCategory category, std::string text,
+ std::string extraText = "");
+ private:
+ ErrorDefinition();
+ ErrorDefinition(const ErrorDefinition& orig);
+ virtual ~ErrorDefinition();
+ static std::map<ErrorType, ErrorInfo> m_errorInfoMap;
};
+}; // namespace SURELOG
+
#endif /* ERRORDEFINITION_H */
-
-
-
diff --git a/SVIncCompil/ErrorReporting/Location.h b/SVIncCompil/ErrorReporting/Location.h
index ac8a530..f177ea7 100644
--- a/SVIncCompil/ErrorReporting/Location.h
+++ b/SVIncCompil/ErrorReporting/Location.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Location.h
* Author: alain
*
@@ -29,26 +29,25 @@
namespace SURELOG {
class Location {
-public:
- Location(SymbolId object) : m_fileId(0), m_line(0), m_column(0), m_object(object) {};
- Location(SymbolId fileId, unsigned int line, unsigned short int column, SymbolId object = 0) :
- m_fileId(fileId), m_line(line), m_column(column), m_object(object) {};
- /* Do not create a copy constructor, use default*/
- // Location(const Location& orig);
- bool operator==(Location& rhs);
- bool operator<( const Location& rhs ) const;
- virtual ~Location();
- SymbolId m_fileId;
- unsigned int m_line;
- unsigned short int m_column;
- SymbolId m_object;
-private:
+ public:
+ Location(SymbolId object)
+ : m_fileId(0), m_line(0), m_column(0), m_object(object){};
+ Location(SymbolId fileId, unsigned int line, unsigned short int column,
+ SymbolId object = 0)
+ : m_fileId(fileId), m_line(line), m_column(column), m_object(object){};
+ /* Do not create a copy constructor, use default*/
+ // Location(const Location& orig);
+ bool operator==(Location& rhs);
+ bool operator<(const Location& rhs) const;
+ virtual ~Location();
+ SymbolId m_fileId;
+ unsigned int m_line;
+ unsigned short int m_column;
+ SymbolId m_object;
+ private:
};
-};
+}; // namespace SURELOG
#endif /* LOCATION_H */
-
-
-
diff --git a/SVIncCompil/ErrorReporting/Report.h b/SVIncCompil/ErrorReporting/Report.h
index c9e363e..dffd9ad 100644
--- a/SVIncCompil/ErrorReporting/Report.h
+++ b/SVIncCompil/ErrorReporting/Report.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Report.h
* Author: alain
*
@@ -25,20 +25,18 @@
#define REPORT_H
namespace SURELOG {
- class Report {
-public:
- Report();
- Report(const Report& orig);
-
- std::pair<bool, bool> makeDiffCompUnitReport(CommandLineParser* clp, SymbolTable* st);
-
- virtual ~Report();
-private:
+class Report {
+ public:
+ Report();
+ Report(const Report& orig);
+ std::pair<bool, bool> makeDiffCompUnitReport(CommandLineParser* clp,
+ SymbolTable* st);
+
+ virtual ~Report();
+
+ private:
};
-};
+}; // namespace SURELOG
#endif /* REPORT_H */
-
-
-
diff --git a/SVIncCompil/ErrorReporting/Waiver.h b/SVIncCompil/ErrorReporting/Waiver.h
index 1011ae1..66a1b7e 100644
--- a/SVIncCompil/ErrorReporting/Waiver.h
+++ b/SVIncCompil/ErrorReporting/Waiver.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Waiver.h
* Author: alain
*
@@ -33,39 +33,41 @@
namespace SURELOG {
class Waiver {
-public:
- Waiver();
- Waiver(const Waiver& orig);
- virtual ~Waiver();
-
- static void initWaivers();
-
- static bool macroArgCheck(std::string name);
-
- static void setWaiver(std::string messageId, std::string fileName, unsigned int line, std::string objectName);
+ public:
+ Waiver();
+ Waiver(const Waiver& orig);
+ virtual ~Waiver();
-
- class WaiverData {
- public:
- WaiverData(ErrorDefinition::ErrorType messageId, std::string fileName, unsigned int line, std::string objectName)
- : m_messageId(messageId), m_fileName(fileName), m_line(line), m_objectId(objectName) {}
- ErrorDefinition::ErrorType m_messageId;
- std::string m_fileName;
- unsigned int m_line;
- std::string m_objectId;
- };
+ static void initWaivers();
- static std::multimap<ErrorDefinition::ErrorType, WaiverData>& getWaivers() { return m_waivers; }
-
-private:
- static std::set<std::string> m_macroArgCheck;
- static std::multimap<ErrorDefinition::ErrorType, WaiverData> m_waivers;
+ static bool macroArgCheck(std::string name);
+ static void setWaiver(std::string messageId, std::string fileName,
+ unsigned int line, std::string objectName);
+
+ class WaiverData {
+ public:
+ WaiverData(ErrorDefinition::ErrorType messageId, std::string fileName,
+ unsigned int line, std::string objectName)
+ : m_messageId(messageId),
+ m_fileName(fileName),
+ m_line(line),
+ m_objectId(objectName) {}
+ ErrorDefinition::ErrorType m_messageId;
+ std::string m_fileName;
+ unsigned int m_line;
+ std::string m_objectId;
+ };
+
+ static std::multimap<ErrorDefinition::ErrorType, WaiverData>& getWaivers() {
+ return m_waivers;
+ }
+
+ private:
+ static std::set<std::string> m_macroArgCheck;
+ static std::multimap<ErrorDefinition::ErrorType, WaiverData> m_waivers;
};
-};
+}; // namespace SURELOG
#endif /* WAIVER_H */
-
-
-
diff --git a/SVIncCompil/Expression/Expr.h b/SVIncCompil/Expression/Expr.h
index 02357d1..66cb123 100644
--- a/SVIncCompil/Expression/Expr.h
+++ b/SVIncCompil/Expression/Expr.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Expr.h
* Author: alain
*
@@ -28,63 +28,79 @@
namespace SURELOG {
-class ExprFactory;
+class ExprFactory;
class ExprBuilder;
-
-class Expr {
-public:
-friend ExprFactory;
- Expr() : m_val(NULL) , m_valR(NULL), m_leftExpr(NULL), m_rightExpr(NULL), m_type(None) {}
- Expr(Value* val) : m_val(val), m_valR(NULL), m_leftExpr(NULL), m_rightExpr(NULL), m_type(Scalar) {}
- Expr(Value* valL, Value* valR): m_val(valL), m_valR(valR), m_leftExpr(NULL), m_rightExpr(NULL), m_type(Range) {}
- Expr(const Expr& orig);
- typedef enum { None,
- Scalar,
- Range,
- Add,
- Minus,
- Mult,
- Div,
- Modulo,
- Neg } ExprType;
-
- Expr* makeExpr(Expr* leftExpr, Expr* rightExpr, ExprType type) { m_leftExpr = leftExpr; m_rightExpr = rightExpr; m_type = type; return this; }
- ExprType getType() { return m_type; }
- Value* eval();
- std::pair<Value*, Value*> evalRange();
- virtual ~Expr();
-private:
-
- Value* m_val;
- Value* m_valR;
- Expr* m_leftExpr;
- Expr* m_rightExpr;
- ExprType m_type;
- ExprFactory* m_factory;
-};
+class Expr {
+ public:
+ friend ExprFactory;
+ Expr()
+ : m_val(NULL),
+ m_valR(NULL),
+ m_leftExpr(NULL),
+ m_rightExpr(NULL),
+ m_type(None) {}
+ Expr(Value* val)
+ : m_val(val),
+ m_valR(NULL),
+ m_leftExpr(NULL),
+ m_rightExpr(NULL),
+ m_type(Scalar) {}
+ Expr(Value* valL, Value* valR)
+ : m_val(valL),
+ m_valR(valR),
+ m_leftExpr(NULL),
+ m_rightExpr(NULL),
+ m_type(Range) {}
+ Expr(const Expr& orig);
+ typedef enum {
+ None,
+ Scalar,
+ Range,
+ Add,
+ Minus,
+ Mult,
+ Div,
+ Modulo,
+ Neg
+ } ExprType;
+
+ Expr* makeExpr(Expr* leftExpr, Expr* rightExpr, ExprType type) {
+ m_leftExpr = leftExpr;
+ m_rightExpr = rightExpr;
+ m_type = type;
+ return this;
+ }
+ ExprType getType() { return m_type; }
+ Value* eval();
+ std::pair<Value*, Value*> evalRange();
+ virtual ~Expr();
+
+ private:
+ Value* m_val;
+ Value* m_valR;
+ Expr* m_leftExpr;
+ Expr* m_rightExpr;
+ ExprType m_type;
+ ExprFactory* m_factory;
+};
class ExprFactory {
-public:
-friend Expr;
-friend ExprBuilder;
- ExprFactory();
-
- Expr* newExpr();
- Expr* newExpr(Value* val);
- Expr* newExpr(Value* valL, Value* valR);
-
- void deleteExpr(Expr*);
-
-private:
- ValueFactory m_valueFactory;
-
+ public:
+ friend Expr;
+ friend ExprBuilder;
+ ExprFactory();
+
+ Expr* newExpr();
+ Expr* newExpr(Value* val);
+ Expr* newExpr(Value* valL, Value* valR);
+
+ void deleteExpr(Expr*);
+
+ private:
+ ValueFactory m_valueFactory;
};
-
-};
+}; // namespace SURELOG
#endif /* EXPR_H */
-
-
-
diff --git a/SVIncCompil/Expression/ExprBuilder.h b/SVIncCompil/Expression/ExprBuilder.h
index f03ae37..67647c0 100644
--- a/SVIncCompil/Expression/ExprBuilder.h
+++ b/SVIncCompil/Expression/ExprBuilder.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ExprBuilder.h
* Author: alain
*
@@ -31,28 +31,29 @@
#include "../Design/ValuedComponentI.h"
namespace SURELOG {
-
+
class ErrorContainer;
class ExprBuilder {
-public:
- ExprBuilder();
- ExprBuilder(const ExprBuilder& orig);
- virtual ~ExprBuilder();
- Value* evalExpr(FileContent*, NodeId id, ValuedComponentI* instance = NULL);
- Value* clone(Value* val);
- void seterrorReporting(ErrorContainer* errors, SymbolTable* symbols) { m_errors = errors; m_symbols = symbols; }
- void deleteValue(Value* value) { m_valueFactory.deleteValue(value); }
- ValueFactory& getValueFactory() { return m_valueFactory; }
-private:
- ValueFactory m_valueFactory;
- ErrorContainer* m_errors;
- SymbolTable* m_symbols;
+ public:
+ ExprBuilder();
+ ExprBuilder(const ExprBuilder& orig);
+ virtual ~ExprBuilder();
+ Value* evalExpr(FileContent*, NodeId id, ValuedComponentI* instance = NULL);
+ Value* clone(Value* val);
+ void seterrorReporting(ErrorContainer* errors, SymbolTable* symbols) {
+ m_errors = errors;
+ m_symbols = symbols;
+ }
+ void deleteValue(Value* value) { m_valueFactory.deleteValue(value); }
+ ValueFactory& getValueFactory() { return m_valueFactory; }
+
+ private:
+ ValueFactory m_valueFactory;
+ ErrorContainer* m_errors;
+ SymbolTable* m_symbols;
};
-};
+}; // namespace SURELOG
#endif /* EXPRBUILDER_H */
-
-
-
diff --git a/SVIncCompil/Expression/Value.h b/SVIncCompil/Expression/Value.h
index c28ee1f..1189bf2 100644
--- a/SVIncCompil/Expression/Value.h
+++ b/SVIncCompil/Expression/Value.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Value.h
* Author: alain
*
@@ -26,269 +26,323 @@
#include <string>
-
-
namespace SURELOG {
-
+
class Expr;
class LValue;
class StValue;
class ValueFactory;
class Value {
-
-public:
- friend Expr;
- friend ValueFactory;
-
- typedef enum {
- None,
- Binary,
- Hexadecimal,
- Octal,
- Unsigned,
- Integer,
- Double,
- String
- } ValueType;
-
- virtual unsigned short getSize() = 0; // size in bits
- virtual unsigned short getNbWords() = 0; // nb of 64 bits words necessary to encode the size
- virtual ValueType getType() = 0;
- virtual bool isLValue() = 0; // is large value (more than one 64 bit word)
- virtual unsigned long getValueUL(unsigned short index = 0) = 0;
- virtual long getValueL(unsigned short index = 0) = 0;
- virtual double getValueD(unsigned short index = 0) = 0;
- virtual std::string getValueS() = 0;
- virtual void set(unsigned long val) = 0;
- virtual void set(long val) = 0;
- virtual void set(double val) = 0;
- virtual void set(unsigned long val, ValueType type, unsigned short size) = 0;
- virtual void set(std::string val) = 0;
- virtual bool operator< (Value& rhs) = 0;
- bool operator> (Value& rhs){ return rhs < (*this); }
- bool operator<=(Value& rhs){ return !(*this > rhs); }
- bool operator>=(Value& rhs){ return !(*this < rhs); }
- virtual bool operator==(Value& rhs) = 0;
- bool operator!=(Value& rhs){ return !((*this) == rhs); }
- virtual void u_plus(Value* a) = 0;
- virtual void u_minus(Value* a) = 0;
- virtual void u_not(Value* a) = 0;
- virtual void u_tilda(Value* a) = 0;
- virtual void incr() = 0;
- virtual void decr() = 0;
- virtual void plus(Value* a, Value* b) = 0;
- virtual void minus(Value* a, Value* b) = 0;
- virtual void mult(Value* a, Value* b) = 0;
- virtual void div(Value* a, Value* b) = 0;
- virtual void mod(Value* a, Value* b) = 0;
- virtual void greater(Value* a, Value* b) = 0;
- virtual void greater_equal(Value* a, Value* b) = 0;
- virtual void lesser(Value* a, Value* b) = 0;
- virtual void lesser_equal(Value* a, Value* b) = 0;
- virtual void equiv(Value* a, Value* b) = 0;
- virtual void logAnd(Value* a, Value* b) = 0;
- virtual void logOr(Value* a, Value* b) = 0;
- virtual void bitwAnd(Value* a, Value* b) = 0;
- virtual void bitwOr(Value* a, Value* b) = 0;
- virtual void bitwXor(Value* a, Value* b) = 0;
- virtual void notEqual(Value* a, Value* b) = 0;
- virtual void shiftLeft(Value* a, Value* b) = 0;
- virtual void shiftRight(Value* a, Value* b) = 0;
-protected:
- unsigned int nbWords_(unsigned int size);
-};
-
+ public:
+ friend Expr;
+ friend ValueFactory;
-class SValue : public Value {
-friend LValue;
-public:
- SValue() { m_value = 0; m_size = 0; }
- SValue(unsigned long val) { m_value = val; m_size = 64; }
- SValue(long val) { m_value = val; m_size = 64; }
- SValue(double val) { m_value = (unsigned long) val; m_size = 64; }
- SValue(unsigned long val, unsigned short size) { m_value = val; m_size = size; }
- unsigned short getSize() { return m_size; }
- unsigned short getNbWords() { return 1; }
- bool isLValue() { return false; }
- ValueType getType() { return None; }
- void set(unsigned long val);
- void set(long val);
- void set(double val);
- void set(unsigned long val, ValueType type, unsigned short size);
- void set(std::string val) { m_value = 6969696969; m_size = 6969; }
- bool operator< (Value& rhs) { return m_value < (dynamic_cast<SValue*>(&rhs))->m_value; }
- bool operator==(Value& rhs) { return m_value == (dynamic_cast<SValue*>(&rhs))->m_value; }
- unsigned long getValueUL(unsigned short index = 0) { return m_value;}
- long getValueL(unsigned short index = 0) { return (long) m_value;}
- double getValueD(unsigned short index = 0) { return (double) m_value;}
- std::string getValueS() { return "NOT_A_STRING_VALUE"; }
- virtual ~SValue();
-
- void u_plus(Value* a);
- void u_minus(Value* a);
- void u_not(Value* a);
- void u_tilda(Value* a);
- void incr();
- void decr();
- void plus(Value* a, Value* b);
- void minus(Value* a, Value* b);
- void mult(Value* a, Value* b);
- void div(Value* a, Value* b);
- void mod(Value* a, Value* b);
- void greater(Value* a, Value* b);
- void greater_equal(Value* a, Value* b);
- void lesser(Value* a, Value* b);
- void lesser_equal(Value* a, Value* b);
- void equiv(Value* a, Value* b);
- void logAnd(Value* a, Value* b);
- void logOr(Value* a, Value* b);
- void bitwAnd(Value* a, Value* b);
- void bitwOr(Value* a, Value* b);
- void bitwXor(Value* a, Value* b);
- void notEqual(Value* a, Value* b);
- void shiftLeft(Value* a, Value* b);
- void shiftRight(Value* a, Value* b);
-
-private:
- unsigned long m_value;
- unsigned short m_size;
+ typedef enum {
+ None,
+ Binary,
+ Hexadecimal,
+ Octal,
+ Unsigned,
+ Integer,
+ Double,
+ String
+ } ValueType;
+
+ virtual unsigned short getSize() = 0; // size in bits
+ virtual unsigned short
+ getNbWords() = 0; // nb of 64 bits words necessary to encode the size
+ virtual ValueType getType() = 0;
+ virtual bool isLValue() = 0; // is large value (more than one 64 bit word)
+ virtual unsigned long getValueUL(unsigned short index = 0) = 0;
+ virtual long getValueL(unsigned short index = 0) = 0;
+ virtual double getValueD(unsigned short index = 0) = 0;
+ virtual std::string getValueS() = 0;
+ virtual void set(unsigned long val) = 0;
+ virtual void set(long val) = 0;
+ virtual void set(double val) = 0;
+ virtual void set(unsigned long val, ValueType type, unsigned short size) = 0;
+ virtual void set(std::string val) = 0;
+ virtual bool operator<(Value& rhs) = 0;
+ bool operator>(Value& rhs) { return rhs < (*this); }
+ bool operator<=(Value& rhs) { return !(*this > rhs); }
+ bool operator>=(Value& rhs) { return !(*this < rhs); }
+ virtual bool operator==(Value& rhs) = 0;
+ bool operator!=(Value& rhs) { return !((*this) == rhs); }
+ virtual void u_plus(Value* a) = 0;
+ virtual void u_minus(Value* a) = 0;
+ virtual void u_not(Value* a) = 0;
+ virtual void u_tilda(Value* a) = 0;
+ virtual void incr() = 0;
+ virtual void decr() = 0;
+ virtual void plus(Value* a, Value* b) = 0;
+ virtual void minus(Value* a, Value* b) = 0;
+ virtual void mult(Value* a, Value* b) = 0;
+ virtual void div(Value* a, Value* b) = 0;
+ virtual void mod(Value* a, Value* b) = 0;
+ virtual void greater(Value* a, Value* b) = 0;
+ virtual void greater_equal(Value* a, Value* b) = 0;
+ virtual void lesser(Value* a, Value* b) = 0;
+ virtual void lesser_equal(Value* a, Value* b) = 0;
+ virtual void equiv(Value* a, Value* b) = 0;
+ virtual void logAnd(Value* a, Value* b) = 0;
+ virtual void logOr(Value* a, Value* b) = 0;
+ virtual void bitwAnd(Value* a, Value* b) = 0;
+ virtual void bitwOr(Value* a, Value* b) = 0;
+ virtual void bitwXor(Value* a, Value* b) = 0;
+ virtual void notEqual(Value* a, Value* b) = 0;
+ virtual void shiftLeft(Value* a, Value* b) = 0;
+ virtual void shiftRight(Value* a, Value* b) = 0;
+
+ protected:
+ unsigned int nbWords_(unsigned int size);
};
+class SValue : public Value {
+ friend LValue;
+
+ public:
+ SValue() {
+ m_value = 0;
+ m_size = 0;
+ }
+ SValue(unsigned long val) {
+ m_value = val;
+ m_size = 64;
+ }
+ SValue(long val) {
+ m_value = val;
+ m_size = 64;
+ }
+ SValue(double val) {
+ m_value = (unsigned long)val;
+ m_size = 64;
+ }
+ SValue(unsigned long val, unsigned short size) {
+ m_value = val;
+ m_size = size;
+ }
+ unsigned short getSize() { return m_size; }
+ unsigned short getNbWords() { return 1; }
+ bool isLValue() { return false; }
+ ValueType getType() { return None; }
+ void set(unsigned long val);
+ void set(long val);
+ void set(double val);
+ void set(unsigned long val, ValueType type, unsigned short size);
+ void set(std::string val) {
+ m_value = 6969696969;
+ m_size = 6969;
+ }
+ bool operator<(Value& rhs) {
+ return m_value < (dynamic_cast<SValue*>(&rhs))->m_value;
+ }
+ bool operator==(Value& rhs) {
+ return m_value == (dynamic_cast<SValue*>(&rhs))->m_value;
+ }
+ unsigned long getValueUL(unsigned short index = 0) { return m_value; }
+ long getValueL(unsigned short index = 0) { return (long)m_value; }
+ double getValueD(unsigned short index = 0) { return (double)m_value; }
+ std::string getValueS() { return "NOT_A_STRING_VALUE"; }
+ virtual ~SValue();
+
+ void u_plus(Value* a);
+ void u_minus(Value* a);
+ void u_not(Value* a);
+ void u_tilda(Value* a);
+ void incr();
+ void decr();
+ void plus(Value* a, Value* b);
+ void minus(Value* a, Value* b);
+ void mult(Value* a, Value* b);
+ void div(Value* a, Value* b);
+ void mod(Value* a, Value* b);
+ void greater(Value* a, Value* b);
+ void greater_equal(Value* a, Value* b);
+ void lesser(Value* a, Value* b);
+ void lesser_equal(Value* a, Value* b);
+ void equiv(Value* a, Value* b);
+ void logAnd(Value* a, Value* b);
+ void logOr(Value* a, Value* b);
+ void bitwAnd(Value* a, Value* b);
+ void bitwOr(Value* a, Value* b);
+ void bitwXor(Value* a, Value* b);
+ void notEqual(Value* a, Value* b);
+ void shiftLeft(Value* a, Value* b);
+ void shiftRight(Value* a, Value* b);
+
+ private:
+ unsigned long m_value;
+ unsigned short m_size;
+};
class ValueFactory {
-public:
- ValueFactory();
- Value* newSValue();
- Value* newLValue();
- Value* newStValue();
- Value* newValue(SValue& initVal);
- Value* newValue(LValue& initVal);
- Value* newValue(StValue& initVal);
- void deleteValue(Value*);
-protected:
- LValue* m_headFree;
- LValue* m_headInUse;
+ public:
+ ValueFactory();
+ Value* newSValue();
+ Value* newLValue();
+ Value* newStValue();
+ Value* newValue(SValue& initVal);
+ Value* newValue(LValue& initVal);
+ Value* newValue(StValue& initVal);
+ void deleteValue(Value*);
+
+ protected:
+ LValue* m_headFree;
+ LValue* m_headInUse;
};
class LValue : public Value {
- friend ValueFactory;
-public:
- LValue(LValue&);
- LValue() { m_type = None; m_nbWords = 0; m_valueArray = NULL; }
- LValue(ValueType type, SValue* values, unsigned short nbWords) { m_type = type, m_valueArray = values; m_nbWords = nbWords;}
- LValue(unsigned long val);
- LValue(long val);
- LValue(double val);
- LValue(unsigned long val, ValueType type, unsigned short size);
- unsigned short getSize();
- unsigned short getNbWords() { return m_nbWords; }
- bool isLValue() { return true; }
- ValueType getType() { return (ValueType) m_type; }
- virtual ~LValue();
-
- void set(unsigned long val);
- void set(long val);
- void set(double val);
- void set(unsigned long val, ValueType type, unsigned short size);
- void set(std::string val) { }
- bool operator< (Value& rhs);
- bool operator==(Value& rhs);
-
- unsigned long getValueUL(unsigned short index = 0) { return ((index < m_nbWords) ? m_valueArray[index].m_value : 0);}
- long getValueL(unsigned short index = 0) { return ((index < m_nbWords) ? (long) m_valueArray[index].m_value : 0);}
- double getValueD(unsigned short index = 0) { return ((index < m_nbWords) ? (double) m_valueArray[index].m_value : 0);}
- std::string getValueS() { return "NOT_A_STRING_VALUE"; }
- void u_plus(Value* a);
- void u_minus(Value* a);
- void u_not(Value* a);
- void u_tilda(Value* a);
- void incr();
- void decr();
- void plus(Value* a, Value* b);
- void minus(Value* a, Value* b);
- void mult(Value* a, Value* b);
- void div(Value* a, Value* b);
- void mod(Value* a, Value* b);
- void greater(Value* a, Value* b);
- void greater_equal(Value* a, Value* b);
- void lesser(Value* a, Value* b);
- void lesser_equal(Value* a, Value* b);
- void equiv(Value* a, Value* b);
- void logAnd(Value* a, Value* b);
- void logOr(Value* a, Value* b);
- void bitwAnd(Value* a, Value* b);
- void bitwOr(Value* a, Value* b);
- void bitwXor(Value* a, Value* b);
- void notEqual(Value* a, Value* b);
- void shiftLeft(Value* a, Value* b);
- void shiftRight(Value* a, Value* b);
-
- void adjust(Value* a);
-private:
- unsigned short m_type;
- unsigned short m_nbWords;
- SValue* m_valueArray;
- LValue* m_prev;
- LValue* m_next;
+ friend ValueFactory;
+
+ public:
+ LValue(LValue&);
+ LValue() {
+ m_type = None;
+ m_nbWords = 0;
+ m_valueArray = NULL;
+ }
+ LValue(ValueType type, SValue* values, unsigned short nbWords) {
+ m_type = type, m_valueArray = values;
+ m_nbWords = nbWords;
+ }
+ LValue(unsigned long val);
+ LValue(long val);
+ LValue(double val);
+ LValue(unsigned long val, ValueType type, unsigned short size);
+ unsigned short getSize();
+ unsigned short getNbWords() { return m_nbWords; }
+ bool isLValue() { return true; }
+ ValueType getType() { return (ValueType)m_type; }
+ virtual ~LValue();
+
+ void set(unsigned long val);
+ void set(long val);
+ void set(double val);
+ void set(unsigned long val, ValueType type, unsigned short size);
+ void set(std::string val) {}
+ bool operator<(Value& rhs);
+ bool operator==(Value& rhs);
+
+ unsigned long getValueUL(unsigned short index = 0) {
+ return ((index < m_nbWords) ? m_valueArray[index].m_value : 0);
+ }
+ long getValueL(unsigned short index = 0) {
+ return ((index < m_nbWords) ? (long)m_valueArray[index].m_value : 0);
+ }
+ double getValueD(unsigned short index = 0) {
+ return ((index < m_nbWords) ? (double)m_valueArray[index].m_value : 0);
+ }
+ std::string getValueS() { return "NOT_A_STRING_VALUE"; }
+ void u_plus(Value* a);
+ void u_minus(Value* a);
+ void u_not(Value* a);
+ void u_tilda(Value* a);
+ void incr();
+ void decr();
+ void plus(Value* a, Value* b);
+ void minus(Value* a, Value* b);
+ void mult(Value* a, Value* b);
+ void div(Value* a, Value* b);
+ void mod(Value* a, Value* b);
+ void greater(Value* a, Value* b);
+ void greater_equal(Value* a, Value* b);
+ void lesser(Value* a, Value* b);
+ void lesser_equal(Value* a, Value* b);
+ void equiv(Value* a, Value* b);
+ void logAnd(Value* a, Value* b);
+ void logOr(Value* a, Value* b);
+ void bitwAnd(Value* a, Value* b);
+ void bitwOr(Value* a, Value* b);
+ void bitwXor(Value* a, Value* b);
+ void notEqual(Value* a, Value* b);
+ void shiftLeft(Value* a, Value* b);
+ void shiftRight(Value* a, Value* b);
+
+ void adjust(Value* a);
+
+ private:
+ unsigned short m_type;
+ unsigned short m_nbWords;
+ SValue* m_valueArray;
+ LValue* m_prev;
+ LValue* m_next;
};
class StValue : public Value {
-friend LValue;
-public:
- StValue() { m_value = ""; m_size = 0; }
- StValue(std::string val) { m_value = val; m_size = val.size(); }
- unsigned short getSize() { return m_size; }
- unsigned short getNbWords() { return 1; }
- bool isLValue() { return false; }
- ValueType getType() { return String; }
- void set(unsigned long val) { m_value = std::to_string(val); }
- void set(long val) { m_value = std::to_string(val); }
- void set(double val) { m_value = std::to_string(val); }
- void set(unsigned long val, ValueType type, unsigned short size) { m_value = std::to_string(val); }
- void set(std::string val) { m_value = val; m_size = val.size(); }
- bool operator< (Value& rhs) { return m_value < (dynamic_cast<StValue*>(&rhs))->m_value; }
- bool operator==(Value& rhs) { return m_value == (dynamic_cast<StValue*>(&rhs))->m_value; }
- unsigned long getValueUL(unsigned short index = 0) { return atol(m_value.c_str());}
- long getValueL(unsigned short index = 0) { return (long) atol(m_value.c_str());}
- double getValueD(unsigned short index = 0) { return (double) atof(m_value.c_str());}
- std::string getValueS() { return m_value; }
- virtual ~StValue();
-
- void u_plus(Value* a) {}
- void u_minus(Value* a) {}
- void u_not(Value* a) {}
- void u_tilda(Value* a) {}
- void incr() {}
- void decr() {}
- void plus(Value* a, Value* b) {}
- void minus(Value* a, Value* b) {}
- void mult(Value* a, Value* b) {}
- void div(Value* a, Value* b) {}
- void mod(Value* a, Value* b) {}
- void greater(Value* a, Value* b) {}
- void greater_equal(Value* a, Value* b) {}
- void lesser(Value* a, Value* b) {}
- void lesser_equal(Value* a, Value* b) {}
- void equiv(Value* a, Value* b) {}
- void logAnd(Value* a, Value* b) {}
- void logOr(Value* a, Value* b) {}
- void bitwAnd(Value* a, Value* b) {}
- void bitwOr(Value* a, Value* b) {}
- void bitwXor(Value* a, Value* b) {}
- void notEqual(Value* a, Value* b) {}
- void shiftLeft(Value* a, Value* b) {}
- void shiftRight(Value* a, Value* b) {}
-
-private:
- std::string m_value;
- unsigned short m_size;
+ friend LValue;
+
+ public:
+ StValue() {
+ m_value = "";
+ m_size = 0;
+ }
+ StValue(std::string val) {
+ m_value = val;
+ m_size = val.size();
+ }
+ unsigned short getSize() { return m_size; }
+ unsigned short getNbWords() { return 1; }
+ bool isLValue() { return false; }
+ ValueType getType() { return String; }
+ void set(unsigned long val) { m_value = std::to_string(val); }
+ void set(long val) { m_value = std::to_string(val); }
+ void set(double val) { m_value = std::to_string(val); }
+ void set(unsigned long val, ValueType type, unsigned short size) {
+ m_value = std::to_string(val);
+ }
+ void set(std::string val) {
+ m_value = val;
+ m_size = val.size();
+ }
+ bool operator<(Value& rhs) {
+ return m_value < (dynamic_cast<StValue*>(&rhs))->m_value;
+ }
+ bool operator==(Value& rhs) {
+ return m_value == (dynamic_cast<StValue*>(&rhs))->m_value;
+ }
+ unsigned long getValueUL(unsigned short index = 0) {
+ return atol(m_value.c_str());
+ }
+ long getValueL(unsigned short index = 0) {
+ return (long)atol(m_value.c_str());
+ }
+ double getValueD(unsigned short index = 0) {
+ return (double)atof(m_value.c_str());
+ }
+ std::string getValueS() { return m_value; }
+ virtual ~StValue();
+
+ void u_plus(Value* a) {}
+ void u_minus(Value* a) {}
+ void u_not(Value* a) {}
+ void u_tilda(Value* a) {}
+ void incr() {}
+ void decr() {}
+ void plus(Value* a, Value* b) {}
+ void minus(Value* a, Value* b) {}
+ void mult(Value* a, Value* b) {}
+ void div(Value* a, Value* b) {}
+ void mod(Value* a, Value* b) {}
+ void greater(Value* a, Value* b) {}
+ void greater_equal(Value* a, Value* b) {}
+ void lesser(Value* a, Value* b) {}
+ void lesser_equal(Value* a, Value* b) {}
+ void equiv(Value* a, Value* b) {}
+ void logAnd(Value* a, Value* b) {}
+ void logOr(Value* a, Value* b) {}
+ void bitwAnd(Value* a, Value* b) {}
+ void bitwOr(Value* a, Value* b) {}
+ void bitwXor(Value* a, Value* b) {}
+ void notEqual(Value* a, Value* b) {}
+ void shiftLeft(Value* a, Value* b) {}
+ void shiftRight(Value* a, Value* b) {}
+
+ private:
+ std::string m_value;
+ unsigned short m_size;
};
-
-};
+}; // namespace SURELOG
#endif /* VALUE_H */
-
-
-
diff --git a/SVIncCompil/Library/AntlrLibParserErrorListener.h b/SVIncCompil/Library/AntlrLibParserErrorListener.h
index 30ac10c..15f03f6 100644
--- a/SVIncCompil/Library/AntlrLibParserErrorListener.h
+++ b/SVIncCompil/Library/AntlrLibParserErrorListener.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: AntlrParserErrorListener.h
* Author: alain
*
@@ -26,32 +26,33 @@
namespace SURELOG {
- class AntlrLibParserErrorListener : public ANTLRErrorListener {
- public:
+class AntlrLibParserErrorListener : public ANTLRErrorListener {
+ public:
+ AntlrLibParserErrorListener(ParseLibraryDef *parser) : m_parser(parser) {}
- AntlrLibParserErrorListener(ParseLibraryDef* parser) : m_parser(parser) {
- }
+ ~AntlrLibParserErrorListener(){};
- ~AntlrLibParserErrorListener() {
- };
+ void syntaxError(Recognizer *recognizer, Token *offendingSymbol, size_t line,
+ size_t charPositionInLine, const std::string &msg,
+ std::exception_ptr e);
- void syntaxError(Recognizer *recognizer, Token *offendingSymbol, size_t line,
- size_t charPositionInLine, const std::string &msg, std::exception_ptr e);
+ void reportAmbiguity(Parser *recognizer, const dfa::DFA &dfa,
+ size_t startIndex, size_t stopIndex, bool exact,
+ const antlrcpp::BitSet &ambigAlts,
+ atn::ATNConfigSet *configs);
- void reportAmbiguity(Parser *recognizer, const dfa::DFA &dfa, size_t startIndex, size_t stopIndex, bool exact,
- const antlrcpp::BitSet &ambigAlts, atn::ATNConfigSet *configs);
+ void reportAttemptingFullContext(Parser *recognizer, const dfa::DFA &dfa,
+ size_t startIndex, size_t stopIndex,
+ const antlrcpp::BitSet &conflictingAlts,
+ atn::ATNConfigSet *configs);
- void reportAttemptingFullContext(Parser *recognizer, const dfa::DFA &dfa, size_t startIndex, size_t stopIndex,
- const antlrcpp::BitSet &conflictingAlts, atn::ATNConfigSet *configs);
+ void reportContextSensitivity(Parser *recognizer, const dfa::DFA &dfa,
+ size_t startIndex, size_t stopIndex,
+ size_t prediction, atn::ATNConfigSet *configs);
- void reportContextSensitivity(Parser *recognizer, const dfa::DFA &dfa, size_t startIndex, size_t stopIndex,
- size_t prediction, atn::ATNConfigSet *configs);
-
- ParseLibraryDef* m_parser;
- };
-
+ ParseLibraryDef *m_parser;
};
+}; // namespace SURELOG
+
#endif /* ANTLRPARSERERRORLISTENER_H */
-
-
diff --git a/SVIncCompil/Library/Library.h b/SVIncCompil/Library/Library.h
index e707df9..326eea3 100644
--- a/SVIncCompil/Library/Library.h
+++ b/SVIncCompil/Library/Library.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Library.h
* Author: alain
*
@@ -26,34 +26,38 @@
#include <string>
#include <vector>
#include <set>
-namespace SURELOG {
+namespace SURELOG {
class ModuleDefinition;
-
+
class Library {
-public:
- Library(std::string name, SymbolTable* symbols) : m_name(name), m_symbols(symbols) {}
- void addFileId(SymbolId fid) { m_fileIds.push_back(fid); m_fileIdsSet.insert(fid);}
- virtual ~Library();
- std::string& getName() { return m_name;}
- std::vector<SymbolId>& getFiles() { return m_fileIds; }
- bool isMember(SymbolId fid) { return m_fileIdsSet.find(fid) != m_fileIdsSet.end(); }
- std::string report(SymbolTable* symbols);
- void addModuleDefinition(ModuleDefinition* def);
- std::map<std::string, ModuleDefinition*>& getModules() { return m_modules; }
- ModuleDefinition* getModule(std::string name);
- SymbolTable* getSymbols() { return m_symbols; }
-private:
- std::string m_name;
- std::vector<SymbolId> m_fileIds;
- std::set<SymbolId> m_fileIdsSet;
- std::map<std::string, ModuleDefinition*> m_modules;
- SymbolTable* m_symbols;
+ public:
+ Library(std::string name, SymbolTable* symbols)
+ : m_name(name), m_symbols(symbols) {}
+ void addFileId(SymbolId fid) {
+ m_fileIds.push_back(fid);
+ m_fileIdsSet.insert(fid);
+ }
+ virtual ~Library();
+ std::string& getName() { return m_name; }
+ std::vector<SymbolId>& getFiles() { return m_fileIds; }
+ bool isMember(SymbolId fid) {
+ return m_fileIdsSet.find(fid) != m_fileIdsSet.end();
+ }
+ std::string report(SymbolTable* symbols);
+ void addModuleDefinition(ModuleDefinition* def);
+ std::map<std::string, ModuleDefinition*>& getModules() { return m_modules; }
+ ModuleDefinition* getModule(std::string name);
+ SymbolTable* getSymbols() { return m_symbols; }
+
+ private:
+ std::string m_name;
+ std::vector<SymbolId> m_fileIds;
+ std::set<SymbolId> m_fileIdsSet;
+ std::map<std::string, ModuleDefinition*> m_modules;
+ SymbolTable* m_symbols;
};
-};
-
+}; // namespace SURELOG
#endif /* LIBRARY_H */
-
-
diff --git a/SVIncCompil/Library/LibrarySet.h b/SVIncCompil/Library/LibrarySet.h
index 9d72f64..b1e597f 100644
--- a/SVIncCompil/Library/LibrarySet.h
+++ b/SVIncCompil/Library/LibrarySet.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: LibrarySet.h
* Author: alain
*
@@ -29,25 +29,22 @@
namespace SURELOG {
class LibrarySet {
-public:
- LibrarySet();
- LibrarySet(const LibrarySet& orig);
- virtual ~LibrarySet();
- void addLibrary(Library& lib) { m_libraries.push_back(lib); }
-
- std::vector<Library>& getLibraries() { return m_libraries; }
- Library* getLibrary(std::string libName);
- Library* getLibrary(SymbolId fileId);
- void checkErrors(SymbolTable* symbols, ErrorContainer* errors);
- std::string report(SymbolTable* symbols);
-
-
-private:
- std::vector<Library> m_libraries;
+ public:
+ LibrarySet();
+ LibrarySet(const LibrarySet& orig);
+ virtual ~LibrarySet();
+ void addLibrary(Library& lib) { m_libraries.push_back(lib); }
+
+ std::vector<Library>& getLibraries() { return m_libraries; }
+ Library* getLibrary(std::string libName);
+ Library* getLibrary(SymbolId fileId);
+ void checkErrors(SymbolTable* symbols, ErrorContainer* errors);
+ std::string report(SymbolTable* symbols);
+
+ private:
+ std::vector<Library> m_libraries;
};
-};
+}; // namespace SURELOG
#endif /* LIBRARYSET_H */
-
-
diff --git a/SVIncCompil/Library/ParseLibraryDef.h b/SVIncCompil/Library/ParseLibraryDef.h
index 7e2a09d..a0787fb 100644
--- a/SVIncCompil/Library/ParseLibraryDef.h
+++ b/SVIncCompil/Library/ParseLibraryDef.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ParseLibraryDef.h
* Author: alain
*
@@ -29,47 +29,37 @@
namespace SURELOG {
- class ParseLibraryDef {
- public:
- ParseLibraryDef(CommandLineParser* commandLineParser, ErrorContainer* errors, SymbolTable* symbolTable, LibrarySet* librarySet, ConfigSet* configSet);
- ParseLibraryDef(const ParseLibraryDef& orig);
- bool parseLibrariesDefinition();
- bool parseLibraryDefinition(SymbolId file, Library* lib = NULL);
- bool parseConfigDefinition();
- virtual ~ParseLibraryDef();
- SymbolId getFileId() { return m_fileId; }
- CommandLineParser* getCommandLineParser() {
- return m_commandLineParser;
- }
+class ParseLibraryDef {
+ public:
+ ParseLibraryDef(CommandLineParser* commandLineParser, ErrorContainer* errors,
+ SymbolTable* symbolTable, LibrarySet* librarySet,
+ ConfigSet* configSet);
+ ParseLibraryDef(const ParseLibraryDef& orig);
+ bool parseLibrariesDefinition();
+ bool parseLibraryDefinition(SymbolId file, Library* lib = NULL);
+ bool parseConfigDefinition();
+ virtual ~ParseLibraryDef();
+ SymbolId getFileId() { return m_fileId; }
+ CommandLineParser* getCommandLineParser() { return m_commandLineParser; }
- ErrorContainer* getErrorContainer() {
- return m_errors;
- }
+ ErrorContainer* getErrorContainer() { return m_errors; }
- SymbolTable* getSymbolTable() {
- return m_symbolTable;
- }
+ SymbolTable* getSymbolTable() { return m_symbolTable; }
- LibrarySet* getLibrarySet() {
- return m_librarySet;
- }
+ LibrarySet* getLibrarySet() { return m_librarySet; }
- ConfigSet* getConfigSet() {
- return m_configSet;
- }
-
- private:
- SymbolId m_fileId;
- CommandLineParser* m_commandLineParser;
- ErrorContainer* m_errors;
- SymbolTable* m_symbolTable;
- LibrarySet* m_librarySet;
- ConfigSet* m_configSet;
- FileContent* m_fileContent;
- };
+ ConfigSet* getConfigSet() { return m_configSet; }
+ private:
+ SymbolId m_fileId;
+ CommandLineParser* m_commandLineParser;
+ ErrorContainer* m_errors;
+ SymbolTable* m_symbolTable;
+ LibrarySet* m_librarySet;
+ ConfigSet* m_configSet;
+ FileContent* m_fileContent;
};
+}; // namespace SURELOG
+
#endif /* PARSELIBRARYDEF_H */
-
-
diff --git a/SVIncCompil/Library/SVLibShapeListener.h b/SVIncCompil/Library/SVLibShapeListener.h
index 3416d41..69bda6f 100644
--- a/SVIncCompil/Library/SVLibShapeListener.h
+++ b/SVIncCompil/Library/SVLibShapeListener.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: SVLibShapeListener.h
* Author: alain
*
@@ -28,81 +28,101 @@
namespace SURELOG {
- class SVLibShapeListener : public SV3_1aTreeShapeListener {
- public:
- SVLibShapeListener(ParseLibraryDef* parser, antlr4::CommonTokenStream* tokens, std::string relativePath);
-
- antlr4::CommonTokenStream* getTokenStream () { return m_tokens; }
- virtual ~SVLibShapeListener();
+class SVLibShapeListener : public SV3_1aTreeShapeListener {
+ public:
+ SVLibShapeListener(ParseLibraryDef* parser, antlr4::CommonTokenStream* tokens,
+ std::string relativePath);
- // *** LIBRARY DEFINITION PARSING ***
-
- // DO NOT OVERRIDE: virtual void enterTop_level_library_rule(SV3_1aParser::Top_level_library_ruleContext * /*ctx*/) override;
+ antlr4::CommonTokenStream* getTokenStream() { return m_tokens; }
+ virtual ~SVLibShapeListener();
- virtual void exitTop_level_library_rule(SV3_1aParser::Top_level_library_ruleContext * ctx) override {
- addVObject(ctx, VObjectType::slTop_level_library_rule);
- }
+ // *** LIBRARY DEFINITION PARSING ***
- virtual void enterNull_rule(SV3_1aParser::Null_ruleContext * /*ctx*/) override { }
- virtual void exitNull_rule(SV3_1aParser::Null_ruleContext * ctx) override { addVObject (ctx, VObjectType::slNull_rule); }
-
- virtual void enterLibrary_text(SV3_1aParser::Library_textContext * /*ctx*/) override {
- }
+ // DO NOT OVERRIDE: virtual void
+ // enterTop_level_library_rule(SV3_1aParser::Top_level_library_ruleContext *
+ // /*ctx*/) override;
- virtual void exitLibrary_text(SV3_1aParser::Library_textContext * ctx) override {
- addVObject(ctx, VObjectType::slLibrary_text);
- }
+ virtual void exitTop_level_library_rule(
+ SV3_1aParser::Top_level_library_ruleContext* ctx) override {
+ addVObject(ctx, VObjectType::slTop_level_library_rule);
+ }
- virtual void enterLibrary_descriptions(SV3_1aParser::Library_descriptionsContext * /*ctx*/) override {
- }
+ virtual void enterNull_rule(
+ SV3_1aParser::Null_ruleContext* /*ctx*/) override {}
+ virtual void exitNull_rule(SV3_1aParser::Null_ruleContext* ctx) override {
+ addVObject(ctx, VObjectType::slNull_rule);
+ }
- virtual void exitLibrary_descriptions(SV3_1aParser::Library_descriptionsContext * ctx) override {
- addVObject(ctx, VObjectType::slLibrary_descriptions);
- }
+ virtual void enterLibrary_text(
+ SV3_1aParser::Library_textContext* /*ctx*/) override {}
- virtual void enterLibrary_declaration(SV3_1aParser::Library_declarationContext * /*ctx*/) override;
+ virtual void exitLibrary_text(
+ SV3_1aParser::Library_textContext* ctx) override {
+ addVObject(ctx, VObjectType::slLibrary_text);
+ }
- virtual void exitLibrary_declaration(SV3_1aParser::Library_declarationContext * ctx) override {
- addVObject(ctx, VObjectType::slLibrary_declaration);
- }
+ virtual void enterLibrary_descriptions(
+ SV3_1aParser::Library_descriptionsContext* /*ctx*/) override {}
- virtual void enterInclude_statement(SV3_1aParser::Include_statementContext * /*ctx*/) override;
+ virtual void exitLibrary_descriptions(
+ SV3_1aParser::Library_descriptionsContext* ctx) override {
+ addVObject(ctx, VObjectType::slLibrary_descriptions);
+ }
- virtual void exitInclude_statement(SV3_1aParser::Include_statementContext * ctx) override {
- addVObject(ctx, VObjectType::slInclude_statement);
- }
+ virtual void enterLibrary_declaration(
+ SV3_1aParser::Library_declarationContext* /*ctx*/) override;
- // *** CONFIG DEFINITION PARSING ***
-
- virtual void enterUselib_directive(SV3_1aParser::Uselib_directiveContext * /*ctx*/) override;
-
- virtual void enterConfig_declaration(SV3_1aParser::Config_declarationContext * /*ctx*/) override;
+ virtual void exitLibrary_declaration(
+ SV3_1aParser::Library_declarationContext* ctx) override {
+ addVObject(ctx, VObjectType::slLibrary_declaration);
+ }
- virtual void enterDesign_statement(SV3_1aParser::Design_statementContext * /*ctx*/) override;
+ virtual void enterInclude_statement(
+ SV3_1aParser::Include_statementContext* /*ctx*/) override;
- virtual void enterConfig_rule_statement(SV3_1aParser::Config_rule_statementContext * /*ctx*/) override;
+ virtual void exitInclude_statement(
+ SV3_1aParser::Include_statementContext* ctx) override {
+ addVObject(ctx, VObjectType::slInclude_statement);
+ }
- virtual void enterDefault_clause(SV3_1aParser::Default_clauseContext * /*ctx*/) override;
+ // *** CONFIG DEFINITION PARSING ***
- virtual void enterInst_clause(SV3_1aParser::Inst_clauseContext * /*ctx*/) override;
+ virtual void enterUselib_directive(
+ SV3_1aParser::Uselib_directiveContext* /*ctx*/) override;
- virtual void enterInst_name(SV3_1aParser::Inst_nameContext * /*ctx*/) override;
+ virtual void enterConfig_declaration(
+ SV3_1aParser::Config_declarationContext* /*ctx*/) override;
- virtual void enterCell_clause(SV3_1aParser::Cell_clauseContext * /*ctx*/) override;
+ virtual void enterDesign_statement(
+ SV3_1aParser::Design_statementContext* /*ctx*/) override;
- virtual void enterLiblist_clause(SV3_1aParser::Liblist_clauseContext * /*ctx*/) override;
+ virtual void enterConfig_rule_statement(
+ SV3_1aParser::Config_rule_statementContext* /*ctx*/) override;
- virtual void enterUse_clause(SV3_1aParser::Use_clauseContext * /*ctx*/) override;
+ virtual void enterDefault_clause(
+ SV3_1aParser::Default_clauseContext* /*ctx*/) override;
- private:
- ParseLibraryDef* m_parser;
- antlr4::CommonTokenStream* m_tokens;
- Config* m_currentConfig;
- std::string m_relativePath;
- };
+ virtual void enterInst_clause(
+ SV3_1aParser::Inst_clauseContext* /*ctx*/) override;
+ virtual void enterInst_name(SV3_1aParser::Inst_nameContext* /*ctx*/) override;
+
+ virtual void enterCell_clause(
+ SV3_1aParser::Cell_clauseContext* /*ctx*/) override;
+
+ virtual void enterLiblist_clause(
+ SV3_1aParser::Liblist_clauseContext* /*ctx*/) override;
+
+ virtual void enterUse_clause(
+ SV3_1aParser::Use_clauseContext* /*ctx*/) override;
+
+ private:
+ ParseLibraryDef* m_parser;
+ antlr4::CommonTokenStream* m_tokens;
+ Config* m_currentConfig;
+ std::string m_relativePath;
};
+}; // namespace SURELOG
+
#endif /* SVLIBSHAPELISTENER_H */
-
-
diff --git a/SVIncCompil/Package/Package.h b/SVIncCompil/Package/Package.h
index c5c2740..0328b82 100644
--- a/SVIncCompil/Package/Package.h
+++ b/SVIncCompil/Package/Package.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Package.h
* Author: alain
*
@@ -32,41 +32,43 @@
namespace SURELOG {
class CompilePackage;
-
+
class Package : public DesignComponent {
-friend CompilePackage;
+ friend CompilePackage;
-public:
- Package(std::string name, Library* library, FileContent* fC, NodeId nodeId) : DesignComponent(fC), m_name(name), m_library(library) {
- addFileContent(fC, nodeId);
- }
- void append(Package* package);
-
- virtual ~Package();
-
- Library* getLibrary() { return m_library; }
-
- unsigned int getSize();
- VObjectType getType() { return m_fileContents[0]->Type(m_nodeIds[0]); }
- bool isInstance() { return false; }
- std::string getName() { return m_name; }
-
- ClassNameClassDefinitionMultiMap& getClassDefinitions() { return m_classDefinitions; }
- void addClassDefinition(std::string className, ClassDefinition* classDef) { m_classDefinitions.insert(std::make_pair(className, classDef)); }
- ClassDefinition* getClassDefinition(const std::string& name);
- ExprBuilder* getExprBuilder() { return & m_exprBuilder; }
-
-private:
- std::string m_name;
- Library* m_library;
- ExprBuilder m_exprBuilder;
- DataTypeMap m_dataTypes;
- ClassNameClassDefinitionMultiMap m_classDefinitions;
-
+ public:
+ Package(std::string name, Library* library, FileContent* fC, NodeId nodeId)
+ : DesignComponent(fC), m_name(name), m_library(library) {
+ addFileContent(fC, nodeId);
+ }
+ void append(Package* package);
+
+ virtual ~Package();
+
+ Library* getLibrary() { return m_library; }
+
+ unsigned int getSize();
+ VObjectType getType() { return m_fileContents[0]->Type(m_nodeIds[0]); }
+ bool isInstance() { return false; }
+ std::string getName() { return m_name; }
+
+ ClassNameClassDefinitionMultiMap& getClassDefinitions() {
+ return m_classDefinitions;
+ }
+ void addClassDefinition(std::string className, ClassDefinition* classDef) {
+ m_classDefinitions.insert(std::make_pair(className, classDef));
+ }
+ ClassDefinition* getClassDefinition(const std::string& name);
+ ExprBuilder* getExprBuilder() { return &m_exprBuilder; }
+
+ private:
+ std::string m_name;
+ Library* m_library;
+ ExprBuilder m_exprBuilder;
+ DataTypeMap m_dataTypes;
+ ClassNameClassDefinitionMultiMap m_classDefinitions;
};
-};
+}; // namespace SURELOG
#endif /* PACKAGE_H */
-
-
diff --git a/SVIncCompil/Package/Precompiled.h b/SVIncCompil/Package/Precompiled.h
index dc45920..67d5a70 100644
--- a/SVIncCompil/Package/Precompiled.h
+++ b/SVIncCompil/Package/Precompiled.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Precompiled.h
* Author: alain
*
@@ -28,24 +28,22 @@
#define PRECOMPILED_H
class Precompiled {
-public:
- Precompiled();
- void addPrecompiled(std::string package_name, std::string fileName);
-
- static Precompiled* getSingleton();
-
- std::string getFileName(std::string packageName);
- bool isFilePrecompiled(std::string fileName);
- bool isPackagePrecompiled(std::string package);
-
- virtual ~Precompiled() {};
-private:
-
- std::map<std::string, std::string> m_packageMap;
- std::set<std::string> m_packageFileSet;
- static Precompiled* m_singleton;
+ public:
+ Precompiled();
+ void addPrecompiled(std::string package_name, std::string fileName);
+
+ static Precompiled* getSingleton();
+
+ std::string getFileName(std::string packageName);
+ bool isFilePrecompiled(std::string fileName);
+ bool isPackagePrecompiled(std::string package);
+
+ virtual ~Precompiled(){};
+
+ private:
+ std::map<std::string, std::string> m_packageMap;
+ std::set<std::string> m_packageFileSet;
+ static Precompiled* m_singleton;
};
#endif /* PRECOMPILED_H */
-
-
diff --git a/SVIncCompil/Testbench/ClassDefinition.h b/SVIncCompil/Testbench/ClassDefinition.h
index c977bd7..b563279 100644
--- a/SVIncCompil/Testbench/ClassDefinition.h
+++ b/SVIncCompil/Testbench/ClassDefinition.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ClassDefinition.h
* Author: alain
*
@@ -37,84 +37,83 @@
namespace SURELOG {
class CompileClass;
-
-class ClassDefinition : public DesignComponent, public DataType{
-friend class CompileClass;
-public:
- ClassDefinition(std::string name, Library* library, DesignComponent* container, FileContent* fC, NodeId nodeId, ClassDefinition* parent);
- virtual ~ClassDefinition();
-
- unsigned int getSize();
- VObjectType getType() { return (m_fileContents[0]->Type(m_nodeIds[0])); }
- bool isInstance() { return false; }
- std::string getName() { return m_name; }
- Library* getLibrary() { return m_library; }
- DesignComponent* getContainer() { return m_container; }
- void setContainer(DesignComponent* container) { m_container = container; }
-
- // Parameter definitions are stored DesignComponent maps
- typedef std::map<std::string, Property*> PropertyMap;
- typedef std::map<std::string, TaskMethod*> TaskMap;
- typedef std::map<std::string, Constraint*> ConstraintMap;
- typedef std::map<std::string, DataType*> BaseClassMap;
- typedef std::map<std::string, ClassDefinition*> ClassMap;
- typedef std::map<std::string, CoverGroupDefinition*> CoverGroupMap;
- typedef std::map<std::string, Parameter*> ParameterMap;
-
- PropertyMap& getPropertyMap() { return m_properties; }
- Property* getProperty(const std::string& name);
- void insertProperty(Property* p);
-
- Function* getFunction(const std::string& name);
-
- TaskMap& getTaskMap() { return m_tasks; }
- TaskMethod* getTask(const std::string& name);
- void insertTask(TaskMethod* p);
-
- ConstraintMap& getConstraintMap() { return m_constraints; }
- Constraint* getConstraint(const std::string& name);
- void insertConstraint(Constraint* p);
-
- // Nested classes
- ClassMap& getClassMap() { return m_classes; }
- ClassDefinition* getClass(const std::string& name);
- void insertClass(ClassDefinition* p);
-
- CoverGroupMap& getCoverGroupMap() { return m_covergroups; }
- CoverGroupDefinition* getCoverGroup(const std::string& name);
- void insertCoverGroup(CoverGroupDefinition* p);
-
- BaseClassMap& getBaseClassMap() { return m_baseclasses; }
- DataType* getBaseClass(const std::string& name);
- void insertBaseClass(DataType* p);
-
- ParameterMap& getParameterMap() { return m_parameters; }
- Parameter* getParameter(const std::string& name);
- void insertParameter(Parameter* p);
-
- DataType* getBaseDataType(std::string type);
-
- bool hasCompleteBaseSpecification();
-
-private:
- std::string m_name;
- Library* m_library;
- DesignComponent* m_container;
- ClassDefinition* m_parent;
- PropertyMap m_properties;
- TaskMap m_tasks;
- ConstraintMap m_constraints;
- ClassMap m_classes;
- CoverGroupMap m_covergroups;
- BaseClassMap m_baseclasses;
- ParameterMap m_parameters;
+class ClassDefinition : public DesignComponent, public DataType {
+ friend class CompileClass;
+
+ public:
+ ClassDefinition(std::string name, Library* library,
+ DesignComponent* container, FileContent* fC, NodeId nodeId,
+ ClassDefinition* parent);
+
+ virtual ~ClassDefinition();
+
+ unsigned int getSize();
+ VObjectType getType() { return (m_fileContents[0]->Type(m_nodeIds[0])); }
+ bool isInstance() { return false; }
+ std::string getName() { return m_name; }
+ Library* getLibrary() { return m_library; }
+ DesignComponent* getContainer() { return m_container; }
+ void setContainer(DesignComponent* container) { m_container = container; }
+
+ // Parameter definitions are stored DesignComponent maps
+ typedef std::map<std::string, Property*> PropertyMap;
+ typedef std::map<std::string, TaskMethod*> TaskMap;
+ typedef std::map<std::string, Constraint*> ConstraintMap;
+ typedef std::map<std::string, DataType*> BaseClassMap;
+ typedef std::map<std::string, ClassDefinition*> ClassMap;
+ typedef std::map<std::string, CoverGroupDefinition*> CoverGroupMap;
+ typedef std::map<std::string, Parameter*> ParameterMap;
+
+ PropertyMap& getPropertyMap() { return m_properties; }
+ Property* getProperty(const std::string& name);
+ void insertProperty(Property* p);
+
+ Function* getFunction(const std::string& name);
+
+ TaskMap& getTaskMap() { return m_tasks; }
+ TaskMethod* getTask(const std::string& name);
+ void insertTask(TaskMethod* p);
+
+ ConstraintMap& getConstraintMap() { return m_constraints; }
+ Constraint* getConstraint(const std::string& name);
+ void insertConstraint(Constraint* p);
+
+ // Nested classes
+ ClassMap& getClassMap() { return m_classes; }
+ ClassDefinition* getClass(const std::string& name);
+ void insertClass(ClassDefinition* p);
+
+ CoverGroupMap& getCoverGroupMap() { return m_covergroups; }
+ CoverGroupDefinition* getCoverGroup(const std::string& name);
+ void insertCoverGroup(CoverGroupDefinition* p);
+
+ BaseClassMap& getBaseClassMap() { return m_baseclasses; }
+ DataType* getBaseClass(const std::string& name);
+ void insertBaseClass(DataType* p);
+
+ ParameterMap& getParameterMap() { return m_parameters; }
+ Parameter* getParameter(const std::string& name);
+ void insertParameter(Parameter* p);
+
+ DataType* getBaseDataType(std::string type);
+
+ bool hasCompleteBaseSpecification();
+
+ private:
+ std::string m_name;
+ Library* m_library;
+ DesignComponent* m_container;
+ ClassDefinition* m_parent;
+ PropertyMap m_properties;
+ TaskMap m_tasks;
+ ConstraintMap m_constraints;
+ ClassMap m_classes;
+ CoverGroupMap m_covergroups;
+ BaseClassMap m_baseclasses;
+ ParameterMap m_parameters;
};
-};
-
+}; // namespace SURELOG
#endif /* CLASSDEFINITION_H */
-
-
-
diff --git a/SVIncCompil/Testbench/ClassObject.h b/SVIncCompil/Testbench/ClassObject.h
index 3c89ea0..31617b9 100644
--- a/SVIncCompil/Testbench/ClassObject.h
+++ b/SVIncCompil/Testbench/ClassObject.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ClassObject.h
* Author: alain
*
@@ -28,30 +28,27 @@
#include "../Expression/Value.h"
namespace SURELOG {
-
+
class ClassObject {
-public:
- ClassObject(ClassDefinition* class_def) : m_class(class_def) {}
- ClassObject(const ClassObject& orig);
- virtual ~ClassObject();
- ClassDefinition* getClass() { return m_class; }
-
- typedef std::map<std::string, std::pair<Property*, Value*>> PropertyValueMap;
-
- PropertyValueMap& getProperties() { return m_properties; }
-
- bool setValue(std::string& property, Value* value);
-
- Value* getValue(std::string& property);
-
-private:
- ClassDefinition* m_class;
- PropertyValueMap m_properties;
+ public:
+ ClassObject(ClassDefinition* class_def) : m_class(class_def) {}
+ ClassObject(const ClassObject& orig);
+ virtual ~ClassObject();
+ ClassDefinition* getClass() { return m_class; }
+
+ typedef std::map<std::string, std::pair<Property*, Value*>> PropertyValueMap;
+
+ PropertyValueMap& getProperties() { return m_properties; }
+
+ bool setValue(std::string& property, Value* value);
+
+ Value* getValue(std::string& property);
+
+ private:
+ ClassDefinition* m_class;
+ PropertyValueMap m_properties;
};
-};
+}; // namespace SURELOG
#endif /* CLASSOBJECT_H */
-
-
-
diff --git a/SVIncCompil/Testbench/Constraint.h b/SVIncCompil/Testbench/Constraint.h
index 5751ea7..fae7380 100644
--- a/SVIncCompil/Testbench/Constraint.h
+++ b/SVIncCompil/Testbench/Constraint.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Constraint.h
* Author: alain
*
@@ -31,22 +31,20 @@
namespace SURELOG {
class Constraint {
-public:
- Constraint(FileContent* fC, NodeId id, std::string name) : m_fileContent(fC), m_nodeId(id), m_name(name) {}
- virtual ~Constraint();
- std::string getName() { return m_name; }
- FileContent* getFileContent() { return m_fileContent; }
- NodeId getNodeId() { return m_nodeId; }
-private:
- FileContent* m_fileContent;
- NodeId m_nodeId;
- std::string m_name;
+ public:
+ Constraint(FileContent* fC, NodeId id, std::string name)
+ : m_fileContent(fC), m_nodeId(id), m_name(name) {}
+ virtual ~Constraint();
+ std::string getName() { return m_name; }
+ FileContent* getFileContent() { return m_fileContent; }
+ NodeId getNodeId() { return m_nodeId; }
+
+ private:
+ FileContent* m_fileContent;
+ NodeId m_nodeId;
+ std::string m_name;
};
-};
-
+}; // namespace SURELOG
#endif /* CONSTRAINT_H */
-
-
-
diff --git a/SVIncCompil/Testbench/CoverGroupDefinition.h b/SVIncCompil/Testbench/CoverGroupDefinition.h
index 9da9620..fca7cb8 100644
--- a/SVIncCompil/Testbench/CoverGroupDefinition.h
+++ b/SVIncCompil/Testbench/CoverGroupDefinition.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: CoverGroupDefinition.h
* Author: alain
*
@@ -30,34 +30,25 @@
namespace SURELOG {
- class CoverGroupDefinition {
- public:
+class CoverGroupDefinition {
+ public:
+ CoverGroupDefinition(FileContent* fC, NodeId id, std::string name)
+ : m_fileContent(fC), m_nodeId(id), m_name(name) {}
- CoverGroupDefinition(FileContent* fC, NodeId id, std::string name) : m_fileContent(fC), m_nodeId(id), m_name(name) {
- }
+ std::string getName() { return m_name; }
- std::string getName() {
- return m_name;
- }
+ FileContent* getFileContent() { return m_fileContent; }
- FileContent* getFileContent() {
- return m_fileContent;
- }
+ NodeId getNodeId() { return m_nodeId; }
- NodeId getNodeId() {
- return m_nodeId;
- }
+ virtual ~CoverGroupDefinition();
- virtual ~CoverGroupDefinition();
- private:
- FileContent* m_fileContent;
- NodeId m_nodeId;
- std::string m_name;
- };
-
+ private:
+ FileContent* m_fileContent;
+ NodeId m_nodeId;
+ std::string m_name;
};
+}; // namespace SURELOG
+
#endif /* COVERGROUPDEFINITION_H */
-
-
-
diff --git a/SVIncCompil/Testbench/FunctionMethod.h b/SVIncCompil/Testbench/FunctionMethod.h
index f14a7d9..e08c2dd 100644
--- a/SVIncCompil/Testbench/FunctionMethod.h
+++ b/SVIncCompil/Testbench/FunctionMethod.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: FunctionMethod.h
* Author: alain
*
@@ -27,33 +27,38 @@
#include "../Design/Function.h"
namespace SURELOG {
-
+
class FunctionMethod : public Function {
-public:
- FunctionMethod(DesignComponent* parent, FileContent* fC, NodeId id, std::string name, DataType* returnType,
- bool is_virtual, bool is_extern, bool is_static, bool is_local, bool is_protected, bool is_pure) :
- Function(parent, fC, id, name, returnType),
- m_virtual(is_virtual), m_extern(is_extern), m_static(is_static), m_local(is_local), m_protected(is_protected), m_pure(is_pure) {}
- virtual ~FunctionMethod();
- bool isVirtual() { return m_virtual; }
- bool isExtern() { return m_extern; }
- bool isStatic() { return m_static; }
- bool isLocal() { return m_local; }
- bool isProtected() { return m_protected; }
- bool isPure() { return m_pure; }
- bool compile(CompileHelper& compile_helper);
-private:
- bool m_virtual;
- bool m_extern;
- bool m_static;
- bool m_local;
- bool m_protected;
- bool m_pure;
+ public:
+ FunctionMethod(DesignComponent* parent, FileContent* fC, NodeId id,
+ std::string name, DataType* returnType, bool is_virtual,
+ bool is_extern, bool is_static, bool is_local,
+ bool is_protected, bool is_pure)
+ : Function(parent, fC, id, name, returnType),
+ m_virtual(is_virtual),
+ m_extern(is_extern),
+ m_static(is_static),
+ m_local(is_local),
+ m_protected(is_protected),
+ m_pure(is_pure) {}
+ virtual ~FunctionMethod();
+ bool isVirtual() { return m_virtual; }
+ bool isExtern() { return m_extern; }
+ bool isStatic() { return m_static; }
+ bool isLocal() { return m_local; }
+ bool isProtected() { return m_protected; }
+ bool isPure() { return m_pure; }
+ bool compile(CompileHelper& compile_helper);
+
+ private:
+ bool m_virtual;
+ bool m_extern;
+ bool m_static;
+ bool m_local;
+ bool m_protected;
+ bool m_pure;
};
-};
+}; // namespace SURELOG
#endif /* FUNCTIONMETHOD_H */
-
-
-
diff --git a/SVIncCompil/Testbench/Program.h b/SVIncCompil/Testbench/Program.h
index f34b533..751479d 100644
--- a/SVIncCompil/Testbench/Program.h
+++ b/SVIncCompil/Testbench/Program.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Program.h
* Author: alain
*
@@ -28,36 +28,38 @@
namespace SURELOG {
- class CompileProgram;
-
+class CompileProgram;
+
class Program : public DesignComponent, public ClockingBlockHolder {
-friend class CompileProgram;
-public:
- Program(std::string name, Library* library, FileContent* fC, NodeId nodeId) : DesignComponent(fC), m_name(name), m_library(library) {
- addFileContent(fC, nodeId);
- }
-
- virtual ~Program();
-
- unsigned int getSize();
- VObjectType getType() { return (m_fileContents[0]->Type(m_nodeIds[0])); }
- bool isInstance() { return true; }
- std::string getName() { return m_name; }
-
-
- ClassNameClassDefinitionMultiMap& getClassDefinitions() { return m_classDefinitions; }
- void addClassDefinition(std::string className, ClassDefinition* classDef) { m_classDefinitions.insert(std::make_pair(className, classDef)); }
- ClassDefinition* getClassDefinition(const std::string& name);
-
-private:
- std::string m_name;
- Library* m_library;
- ClassNameClassDefinitionMultiMap m_classDefinitions;
+ friend class CompileProgram;
+
+ public:
+ Program(std::string name, Library* library, FileContent* fC, NodeId nodeId)
+ : DesignComponent(fC), m_name(name), m_library(library) {
+ addFileContent(fC, nodeId);
+ }
+
+ virtual ~Program();
+
+ unsigned int getSize();
+ VObjectType getType() { return (m_fileContents[0]->Type(m_nodeIds[0])); }
+ bool isInstance() { return true; }
+ std::string getName() { return m_name; }
+
+ ClassNameClassDefinitionMultiMap& getClassDefinitions() {
+ return m_classDefinitions;
+ }
+ void addClassDefinition(std::string className, ClassDefinition* classDef) {
+ m_classDefinitions.insert(std::make_pair(className, classDef));
+ }
+ ClassDefinition* getClassDefinition(const std::string& name);
+
+ private:
+ std::string m_name;
+ Library* m_library;
+ ClassNameClassDefinitionMultiMap m_classDefinitions;
};
-};
+}; // namespace SURELOG
#endif /* PROGRAM_H */
-
-
-
diff --git a/SVIncCompil/Testbench/Property.h b/SVIncCompil/Testbench/Property.h
index 673d0df..4df6f7f 100644
--- a/SVIncCompil/Testbench/Property.h
+++ b/SVIncCompil/Testbench/Property.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Property.h
* Author: alain
*
@@ -28,34 +28,34 @@
#include "Variable.h"
namespace SURELOG {
-
class Property : public Variable {
-public:
- Property(DataType* dataType, FileContent* fc, NodeId varId, NodeId range, std::string name,
- bool is_local, bool is_static, bool is_protected, bool is_rand, bool is_randc) :
- Variable (dataType, fc, varId, range, name),
- m_is_local(is_local), m_is_static(is_static), m_is_protected(is_protected), m_is_rand(is_rand), m_is_randc(is_randc) {}
- virtual ~Property();
-
- bool isLocal() { return m_is_local; }
- bool isStatic() { return m_is_static; }
- bool isProtected() { return m_is_protected; }
- bool isRand() { return m_is_rand; }
- bool isRandc() { return m_is_randc; }
-
-private:
-
- bool m_is_local;
- bool m_is_static;
- bool m_is_protected;
- bool m_is_rand;
- bool m_is_randc;
+ public:
+ Property(DataType* dataType, FileContent* fc, NodeId varId, NodeId range,
+ std::string name, bool is_local, bool is_static, bool is_protected,
+ bool is_rand, bool is_randc)
+ : Variable(dataType, fc, varId, range, name),
+ m_is_local(is_local),
+ m_is_static(is_static),
+ m_is_protected(is_protected),
+ m_is_rand(is_rand),
+ m_is_randc(is_randc) {}
+ virtual ~Property();
+
+ bool isLocal() { return m_is_local; }
+ bool isStatic() { return m_is_static; }
+ bool isProtected() { return m_is_protected; }
+ bool isRand() { return m_is_rand; }
+ bool isRandc() { return m_is_randc; }
+
+ private:
+ bool m_is_local;
+ bool m_is_static;
+ bool m_is_protected;
+ bool m_is_rand;
+ bool m_is_randc;
};
-};
+}; // namespace SURELOG
#endif /* PROPERTY_H */
-
-
-
diff --git a/SVIncCompil/Testbench/TaskMethod.h b/SVIncCompil/Testbench/TaskMethod.h
index 673c0db..f04390c 100644
--- a/SVIncCompil/Testbench/TaskMethod.h
+++ b/SVIncCompil/Testbench/TaskMethod.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: TaskMethod.h
* Author: alain
*
@@ -27,20 +27,20 @@
#include "../Design/Task.h"
namespace SURELOG {
-
+
class TaskMethod : public Task {
-public:
- TaskMethod(DesignComponent* parent, FileContent* fC, NodeId id, std::string name, bool is_extern) : Task(parent, fC, id, name), m_extern(is_extern) {}
- virtual ~TaskMethod();
- bool isExtern() { return m_extern; }
- bool compile(CompileHelper& compile_helper);
-private:
- bool m_extern;
+ public:
+ TaskMethod(DesignComponent* parent, FileContent* fC, NodeId id,
+ std::string name, bool is_extern)
+ : Task(parent, fC, id, name), m_extern(is_extern) {}
+ virtual ~TaskMethod();
+ bool isExtern() { return m_extern; }
+ bool compile(CompileHelper& compile_helper);
+
+ private:
+ bool m_extern;
};
-};
+}; // namespace SURELOG
#endif /* TASKMETHOD_H */
-
-
-
diff --git a/SVIncCompil/Testbench/TypeDef.h b/SVIncCompil/Testbench/TypeDef.h
index 25425b2..088e3fe 100644
--- a/SVIncCompil/Testbench/TypeDef.h
+++ b/SVIncCompil/Testbench/TypeDef.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: TypeDef.h
* Author: alain
*
@@ -29,24 +29,22 @@
#include "../Design/DataType.h"
namespace SURELOG {
- class FileContent;
- class Enum;
-
- class TypeDef : public DataType {
-public:
- TypeDef(FileContent* fC, NodeId id, NodeId the_def, std::string name);
-
- void setEnum(Enum* the_enum) { m_enum = the_enum; }
- virtual ~TypeDef();
- NodeId getDefinitionNode() { return m_the_def; }
- Enum* getEnum() { return m_enum; }
-private:
- NodeId m_the_def;
- Enum* m_enum;
+class FileContent;
+class Enum;
+
+class TypeDef : public DataType {
+ public:
+ TypeDef(FileContent* fC, NodeId id, NodeId the_def, std::string name);
+
+ void setEnum(Enum* the_enum) { m_enum = the_enum; }
+ virtual ~TypeDef();
+ NodeId getDefinitionNode() { return m_the_def; }
+ Enum* getEnum() { return m_enum; }
+
+ private:
+ NodeId m_the_def;
+ Enum* m_enum;
};
-};
+}; // namespace SURELOG
#endif /* TYPEDEF_H */
-
-
-
diff --git a/SVIncCompil/Testbench/Variable.h b/SVIncCompil/Testbench/Variable.h
index 6191c58..3b95615 100644
--- a/SVIncCompil/Testbench/Variable.h
+++ b/SVIncCompil/Testbench/Variable.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Variable.h
* Author: alain
*
@@ -27,28 +27,30 @@
namespace SURELOG {
class Variable {
-public:
- Variable(DataType* dataType, FileContent* fc, NodeId varId, NodeId range, std::string name) :
- m_dataType(dataType), m_fc(fc), m_nodeId(varId), m_range(range), m_name(name) {}
- virtual ~Variable();
-
- DataType* getDataType() { return m_dataType; }
- std::string getName() { return m_name; }
- FileContent* getFileContent() { return m_fc; }
- NodeId getNodeId() { return m_nodeId; }
- NodeId getRange() { return m_range; }
-
-private:
- DataType* m_dataType;
- FileContent* m_fc;
- NodeId m_nodeId;
- NodeId m_range;
- std::string m_name;
+ public:
+ Variable(DataType* dataType, FileContent* fc, NodeId varId, NodeId range,
+ std::string name)
+ : m_dataType(dataType),
+ m_fc(fc),
+ m_nodeId(varId),
+ m_range(range),
+ m_name(name) {}
+ virtual ~Variable();
+
+ DataType* getDataType() { return m_dataType; }
+ std::string getName() { return m_name; }
+ FileContent* getFileContent() { return m_fc; }
+ NodeId getNodeId() { return m_nodeId; }
+ NodeId getRange() { return m_range; }
+
+ private:
+ DataType* m_dataType;
+ FileContent* m_fc;
+ NodeId m_nodeId;
+ NodeId m_range;
+ std::string m_name;
};
-};
+}; // namespace SURELOG
#endif /* VARIABLE_H */
-
-
-
diff --git a/SVIncCompil/Testcases/Monitor/Monitor_diff.log b/SVIncCompil/Testcases/Monitor/Monitor_diff.log
index ed797e2..3ef3951 100644
--- a/SVIncCompil/Testcases/Monitor/Monitor_diff.log
+++ b/SVIncCompil/Testcases/Monitor/Monitor_diff.log
@@ -827,5 +827,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-11.70user 0.19system 0:12.29elapsed 96%CPU (0avgtext+0avgdata 268604maxresident)k
-768inputs+15192outputs (0major+69419minor)pagefaults 0swaps
+11.58user 0.18system 0:11.77elapsed 99%CPU (0avgtext+0avgdata 268736maxresident)k
+0inputs+15192outputs (0major+69421minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/OldLibrary/OldLibrary.log b/SVIncCompil/Testcases/OldLibrary/OldLibrary.log
index 22985fd..1e96377 100644
--- a/SVIncCompil/Testcases/OldLibrary/OldLibrary.log
+++ b/SVIncCompil/Testcases/OldLibrary/OldLibrary.log
@@ -82,5 +82,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-0.20user 0.03system 0:00.24elapsed 100%CPU (0avgtext+0avgdata 45772maxresident)k
-0inputs+144outputs (0major+10893minor)pagefaults 0swaps
+0.19user 0.05system 0:00.24elapsed 99%CPU (0avgtext+0avgdata 45528maxresident)k
+0inputs+144outputs (0major+10884minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/SimpleCmdLineTest/SimpleCmdLineTest.log b/SVIncCompil/Testcases/SimpleCmdLineTest/SimpleCmdLineTest.log
index bcfd7c6..142b881 100644
--- a/SVIncCompil/Testcases/SimpleCmdLineTest/SimpleCmdLineTest.log
+++ b/SVIncCompil/Testcases/SimpleCmdLineTest/SimpleCmdLineTest.log
@@ -25,5 +25,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-0.12user 0.02system 0:00.14elapsed 100%CPU (0avgtext+0avgdata 45844maxresident)k
-0inputs+32outputs (0major+10049minor)pagefaults 0swaps
+0.13user 0.01system 0:00.15elapsed 100%CPU (0avgtext+0avgdata 45668maxresident)k
+0inputs+32outputs (0major+10053minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/SimpleUVM/SimpleUVM_diff.log b/SVIncCompil/Testcases/SimpleUVM/SimpleUVM_diff.log
index 07c8f86..565b866 100644
--- a/SVIncCompil/Testcases/SimpleUVM/SimpleUVM_diff.log
+++ b/SVIncCompil/Testcases/SimpleUVM/SimpleUVM_diff.log
@@ -16,12 +16,12 @@
[INFO :PP0122] Preprocessing source file "/home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv".
+[INFO :PP0122] Preprocessing source file "../../../UVM/uvm-1.2/src/uvm_pkg.sv".
+
[INFO :PP0122] Preprocessing source file "design.sv".
[INFO :PP0122] Preprocessing source file "testbench.sv".
-[INFO :PP0122] Preprocessing source file "../../../UVM/uvm-1.2/src/uvm_pkg.sv".
-
[INFO :PP0123] Preprocessing include file "../../../UVM/uvm-1.2/src/uvm_macros.svh".
[INFO :PP0123] Preprocessing include file "../../../UVM/uvm-1.2/src/macros/uvm_version_defines.svh".
@@ -68,18 +68,14 @@
[INFO :PP0123] Preprocessing include file "../../../UVM/uvm-1.2/src/macros/uvm_deprecated_defines.svh".
-[INFO :PA0201] Parsing source file "testbench.sv".
+[INFO :PA0201] Parsing source file "/home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv".
[INFO :PA0201] Parsing source file "../../../UVM/uvm-1.2/src/uvm_pkg.sv".
-[INFO :PA0201] Parsing source file "/home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv".
-
[INFO :PA0201] Parsing source file "design.sv".
[INFO :PA0201] Parsing source file "testbench.sv".
-[INFO :PA0201] Parsing source file "testbench.sv".
-
[INFO :CM0029] Using global timescale: "1ns/1ns".
[INFO :CP0300] Compilation...
@@ -94,12 +90,12 @@
[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:590 Compile class "uvm_pkg::get_t".
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_catcher.svh:32 Compile class "uvm_pkg::sev_id_struct".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_tr_stream.svh:31 Compile class "uvm_pkg::m_uvm_tr_stream_cfg".
[INFO :CP0302] uvm-1.2/src/base/uvm_config_db.svh:38 Compile class "uvm_pkg::m_uvm_waiter".
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_catcher.svh:32 Compile class "uvm_pkg::sev_id_struct".
+
[INFO :CP0302] uvm-1.2/src/comps/uvm_agent.svh:39 Compile class "uvm_pkg::uvm_agent".
[INFO :CP0302] uvm-1.2/src/comps/uvm_algorithmic_comparator.svh:68 Compile class "uvm_pkg::uvm_algorithmic_comparator".
@@ -108,644 +104,644 @@
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_analysis_port.svh:111 Compile class "uvm_pkg::uvm_analysis_imp".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:135 Compile class "uvm_pkg::uvm_blocking_get_peek_export".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:131 Compile class "uvm_pkg::uvm_bit_rsrc".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_analysis_port.svh:56 Compile class "uvm_pkg::uvm_analysis_port".
[INFO :CP0302] uvm-1.2/src/base/uvm_barrier.svh:34 Compile class "uvm_pkg::uvm_barrier".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_analysis_port.svh:56 Compile class "uvm_pkg::uvm_analysis_port".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:100 Compile class "uvm_pkg::uvm_blocking_get_port".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:136 Compile class "uvm_pkg::uvm_blocking_get_peek_port".
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:131 Compile class "uvm_pkg::uvm_bit_rsrc".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:99 Compile class "uvm_pkg::uvm_blocking_get_export".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:117 Compile class "uvm_pkg::uvm_blocking_peek_export".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:101 Compile class "uvm_pkg::uvm_blocking_get_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:135 Compile class "uvm_pkg::uvm_blocking_get_peek_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:137 Compile class "uvm_pkg::uvm_blocking_get_peek_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:136 Compile class "uvm_pkg::uvm_blocking_get_peek_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:100 Compile class "uvm_pkg::uvm_blocking_get_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:201 Compile class "uvm_pkg::uvm_blocking_master_export".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:233 Compile class "uvm_pkg::uvm_blocking_master_imp".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:204 Compile class "uvm_pkg::uvm_blocking_master_port".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:101 Compile class "uvm_pkg::uvm_blocking_get_imp".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:80 Compile class "uvm_pkg::uvm_blocking_put_export".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:81 Compile class "uvm_pkg::uvm_blocking_put_port".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:266 Compile class "uvm_pkg::uvm_blocking_slave_imp".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:118 Compile class "uvm_pkg::uvm_blocking_peek_port".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:137 Compile class "uvm_pkg::uvm_blocking_get_peek_imp".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:225 Compile class "uvm_pkg::uvm_blocking_slave_port".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:63 Compile class "uvm_pkg::uvm_build_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:222 Compile class "uvm_pkg::uvm_blocking_slave_export".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:201 Compile class "uvm_pkg::uvm_blocking_master_export".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:147 Compile class "uvm_pkg::uvm_bottom_up_visitor_adapter".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:154 Compile class "uvm_pkg::uvm_byte_rsrc".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:299 Compile class "uvm_pkg::uvm_blocking_transport_imp".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:117 Compile class "uvm_pkg::uvm_blocking_peek_export".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:119 Compile class "uvm_pkg::uvm_blocking_peek_imp".
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:178 Compile class "uvm_pkg::uvm_by_level_visitor_adapter".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:118 Compile class "uvm_pkg::uvm_blocking_peek_port".
-[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:470 Compile class "uvm_pkg::uvm_callbacks".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:80 Compile class "uvm_pkg::uvm_blocking_put_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:82 Compile class "uvm_pkg::uvm_blocking_put_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:81 Compile class "uvm_pkg::uvm_blocking_put_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:222 Compile class "uvm_pkg::uvm_blocking_slave_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:266 Compile class "uvm_pkg::uvm_blocking_slave_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:225 Compile class "uvm_pkg::uvm_blocking_slave_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:243 Compile class "uvm_pkg::uvm_blocking_transport_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:299 Compile class "uvm_pkg::uvm_blocking_transport_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:246 Compile class "uvm_pkg::uvm_blocking_transport_port".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:147 Compile class "uvm_pkg::uvm_bottom_up_visitor_adapter".
[INFO :CP0302] uvm-1.2/src/base/uvm_bottomup_phase.svh:36 Compile class "uvm_pkg::uvm_bottomup_phase".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:82 Compile class "uvm_pkg::uvm_blocking_put_imp".
+[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:63 Compile class "uvm_pkg::uvm_build_phase".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:74 Compile class "uvm_pkg::uvm_built_in_clone".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:41 Compile class "uvm_pkg::uvm_built_in_comp".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:59 Compile class "uvm_pkg::uvm_built_in_converter".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_pair.svh:116 Compile class "uvm_pkg::uvm_built_in_pair".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:178 Compile class "uvm_pkg::uvm_by_level_visitor_adapter".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:154 Compile class "uvm_pkg::uvm_byte_rsrc".
[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:1140 Compile class "uvm_pkg::uvm_callback".
[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:1037 Compile class "uvm_pkg::uvm_callback_iter".
-[INFO :CP0302] uvm-1.2/src/base/uvm_component.svh:2975 Compile class "uvm_pkg::uvm_config_object_wrapper".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:243 Compile class "uvm_pkg::uvm_blocking_transport_export".
+[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:470 Compile class "uvm_pkg::uvm_callbacks".
[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:87 Compile class "uvm_pkg::uvm_callbacks_base".
+[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:221 Compile class "uvm_pkg::uvm_cause_effect_link".
+
[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:351 Compile class "uvm_pkg::uvm_check_phase".
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:248 Compile class "uvm_pkg::uvm_configure_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:246 Compile class "uvm_pkg::uvm_blocking_transport_port".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_cmdline_processor.svh:25 Compile class "uvm_pkg::uvm_cmd_line_verb".
-
[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:134 Compile class "uvm_pkg::uvm_class_clone".
-[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:109 Compile class "uvm_pkg::uvm_connect_phase".
-
-[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:74 Compile class "uvm_pkg::uvm_built_in_clone".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_cmdline_processor.svh:48 Compile class "uvm_pkg::uvm_cmdline_processor".
-
[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:93 Compile class "uvm_pkg::uvm_class_comp".
-[INFO :CP0302] uvm-1.2/src/base/uvm_coreservice.svh:123 Compile class "uvm_pkg::uvm_default_coreservice_t".
-
-[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:41 Compile class "uvm_pkg::uvm_built_in_comp".
-
[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:113 Compile class "uvm_pkg::uvm_class_converter".
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:243 Compile class "uvm_pkg::uvm_component_name_check_visitor".
-
-[INFO :CP0302] uvm-1.2/src/comps/uvm_policies.svh:59 Compile class "uvm_pkg::uvm_built_in_converter".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:966 Compile class "uvm_pkg::uvm_derived_callbacks".
-
[INFO :CP0302] uvm-1.2/src/comps/uvm_pair.svh:37 Compile class "uvm_pkg::uvm_class_pair".
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:214 Compile class "uvm_pkg::uvm_component_proxy".
+[INFO :CP0302] uvm-1.2/src/base/uvm_cmdline_processor.svh:25 Compile class "uvm_pkg::uvm_cmd_line_verb".
-[INFO :CP0302] uvm-1.2/src/comps/uvm_pair.svh:116 Compile class "uvm_pkg::uvm_built_in_pair".
-
-[INFO :CP0302] uvm-1.2/src/comps/uvm_driver.svh:44 Compile class "uvm_pkg::uvm_driver".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_registry.svh:49 Compile class "uvm_pkg::uvm_component_registry".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_component.svh:60 Compile class "uvm_pkg::uvm_component".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_globals.svh:499 Compile class "uvm_pkg::uvm_enum_wrapper".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:221 Compile class "uvm_pkg::uvm_cause_effect_link".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_config_db.svh:360 Compile class "uvm_pkg::uvm_config_db_options".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_event.svh:34 Compile class "uvm_pkg::uvm_event_base".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_coreservice.svh:50 Compile class "uvm_pkg::uvm_coreservice_t".
+[INFO :CP0302] uvm-1.2/src/base/uvm_cmdline_processor.svh:48 Compile class "uvm_pkg::uvm_cmdline_processor".
[INFO :CP0302] uvm-1.2/src/base/uvm_comparer.svh:34 Compile class "uvm_pkg::uvm_comparer".
-[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:313 Compile class "uvm_pkg::uvm_extract_phase".
+[INFO :CP0302] uvm-1.2/src/base/uvm_component.svh:60 Compile class "uvm_pkg::uvm_component".
-[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:330 Compile class "uvm_pkg::uvm_default_factory".
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:243 Compile class "uvm_pkg::uvm_component_name_check_visitor".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:214 Compile class "uvm_pkg::uvm_component_proxy".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_registry.svh:49 Compile class "uvm_pkg::uvm_component_registry".
[INFO :CP0302] uvm-1.2/src/base/uvm_config_db.svh:65 Compile class "uvm_pkg::uvm_config_db".
-[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:853 Compile class "uvm_pkg::uvm_factory_override".
+[INFO :CP0302] uvm-1.2/src/base/uvm_config_db.svh:360 Compile class "uvm_pkg::uvm_config_db_options".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_component.svh:2975 Compile class "uvm_pkg::uvm_config_object_wrapper".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:248 Compile class "uvm_pkg::uvm_configure_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:109 Compile class "uvm_pkg::uvm_connect_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_coreservice.svh:50 Compile class "uvm_pkg::uvm_coreservice_t".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_coreservice.svh:123 Compile class "uvm_pkg::uvm_default_coreservice_t".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:330 Compile class "uvm_pkg::uvm_default_factory".
[INFO :CP0302] uvm-1.2/src/base/uvm_report_server.svh:244 Compile class "uvm_pkg::uvm_default_report_server".
+[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:966 Compile class "uvm_pkg::uvm_derived_callbacks".
+
[INFO :CP0302] uvm-1.2/src/base/uvm_domain.svh:65 Compile class "uvm_pkg::uvm_domain".
+[INFO :CP0302] uvm-1.2/src/comps/uvm_driver.svh:44 Compile class "uvm_pkg::uvm_driver".
+
[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:151 Compile class "uvm_pkg::uvm_end_of_elaboration_phase".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:111 Compile class "uvm_pkg::uvm_get_export".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_event_callback.svh:40 Compile class "uvm_pkg::uvm_event_callback".
+[INFO :CP0302] uvm-1.2/src/base/uvm_globals.svh:499 Compile class "uvm_pkg::uvm_enum_wrapper".
[INFO :CP0302] uvm-1.2/src/comps/uvm_env.svh:33 Compile class "uvm_pkg::uvm_env".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:149 Compile class "uvm_pkg::uvm_get_peek_imp".
+[INFO :CP0302] uvm-1.2/src/base/uvm_event.svh:254 Compile class "uvm_pkg::uvm_event".
-[INFO :CP0302] uvm-1.2/src/comps/uvm_in_order_comparator.svh:241 Compile class "uvm_pkg::uvm_in_order_class_comparator".
+[INFO :CP0302] uvm-1.2/src/base/uvm_event.svh:34 Compile class "uvm_pkg::uvm_event_base".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_event_callback.svh:40 Compile class "uvm_pkg::uvm_event_callback".
[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_builtin.svh:161 Compile class "uvm_pkg::uvm_exhaustive_sequence".
-[INFO :CP0302] uvm-1.2/src/base/uvm_event.svh:254 Compile class "uvm_pkg::uvm_event".
-
-[INFO :CP0302] uvm-1.2/src/dap/uvm_get_to_lock_dap.svh:35 Compile class "uvm_pkg::uvm_get_to_lock_dap".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:52 Compile class "uvm_pkg::uvm_int_rsrc".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:32 Compile class "uvm_pkg::uvm_factory_queue_class".
+[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:313 Compile class "uvm_pkg::uvm_extract_phase".
[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:75 Compile class "uvm_pkg::uvm_factory".
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:372 Compile class "uvm_pkg::uvm_main_phase".
+[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:853 Compile class "uvm_pkg::uvm_factory_override".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:32 Compile class "uvm_pkg::uvm_factory_queue_class".
[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:431 Compile class "uvm_pkg::uvm_final_phase".
-[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:390 Compile class "uvm_pkg::uvm_line_printer".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:111 Compile class "uvm_pkg::uvm_get_export".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:113 Compile class "uvm_pkg::uvm_get_imp".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:147 Compile class "uvm_pkg::uvm_get_peek_export".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:255 Compile class "uvm_pkg::uvm_master_imp".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:59 Compile class "uvm_pkg::uvm_link_base".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:149 Compile class "uvm_pkg::uvm_get_peek_imp".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:148 Compile class "uvm_pkg::uvm_get_peek_port".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:112 Compile class "uvm_pkg::uvm_get_port".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:64 Compile class "uvm_pkg::uvm_mem_mam".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:215 Compile class "uvm_pkg::uvm_master_export".
+[INFO :CP0302] uvm-1.2/src/dap/uvm_get_to_lock_dap.svh:35 Compile class "uvm_pkg::uvm_get_to_lock_dap".
[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_model.svh:347 Compile class "uvm_pkg::uvm_hdl_path_concat".
[INFO :CP0302] uvm-1.2/src/base/uvm_heartbeat.svh:53 Compile class "uvm_pkg::uvm_heartbeat".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:276 Compile class "uvm_pkg::uvm_mem_region".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_mem.svh:40 Compile class "uvm_pkg::uvm_mem".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_heartbeat.svh:290 Compile class "uvm_pkg::uvm_heartbeat_callback".
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_walk_seq.svh:60 Compile class "uvm_pkg::uvm_mem_single_walk_seq".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_access_seq.svh:195 Compile class "uvm_pkg::uvm_mem_access_seq".
-
[INFO :CP0302] uvm-1.2/src/comps/uvm_in_order_comparator.svh:212 Compile class "uvm_pkg::uvm_in_order_built_in_comparator".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:142 Compile class "uvm_pkg::uvm_nonblocking_get_peek_port".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_access_seq.svh:50 Compile class "uvm_pkg::uvm_mem_single_access_seq".
+[INFO :CP0302] uvm-1.2/src/comps/uvm_in_order_comparator.svh:241 Compile class "uvm_pkg::uvm_in_order_class_comparator".
[INFO :CP0302] uvm-1.2/src/comps/uvm_in_order_comparator.svh:72 Compile class "uvm_pkg::uvm_in_order_comparator".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:244 Compile class "uvm_pkg::uvm_nonblocking_master_imp".
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:52 Compile class "uvm_pkg::uvm_int_rsrc".
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_walk_seq.svh:197 Compile class "uvm_pkg::uvm_mem_walk_seq".
+[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:390 Compile class "uvm_pkg::uvm_line_printer".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:211 Compile class "uvm_pkg::uvm_nonblocking_master_port".
+[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:59 Compile class "uvm_pkg::uvm_link_base".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:372 Compile class "uvm_pkg::uvm_main_phase".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:215 Compile class "uvm_pkg::uvm_master_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:255 Compile class "uvm_pkg::uvm_master_imp".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:218 Compile class "uvm_pkg::uvm_master_port".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:89 Compile class "uvm_pkg::uvm_nonblocking_put_imp".
+[INFO :CP0302] uvm-1.2/src/reg/uvm_mem.svh:40 Compile class "uvm_pkg::uvm_mem".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:141 Compile class "uvm_pkg::uvm_nonblocking_get_peek_export".
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_access_seq.svh:195 Compile class "uvm_pkg::uvm_mem_access_seq".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:87 Compile class "uvm_pkg::uvm_nonblocking_put_export".
+[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:64 Compile class "uvm_pkg::uvm_mem_mam".
[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:562 Compile class "uvm_pkg::uvm_mem_mam_cfg".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:232 Compile class "uvm_pkg::uvm_nonblocking_slave_port".
+[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:520 Compile class "uvm_pkg::uvm_mem_mam_policy".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:276 Compile class "uvm_pkg::uvm_mem_region".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_shared_access_seq.svh:205 Compile class "uvm_pkg::uvm_mem_shared_access_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_access_seq.svh:50 Compile class "uvm_pkg::uvm_mem_single_access_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_walk_seq.svh:60 Compile class "uvm_pkg::uvm_mem_single_walk_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_mem_walk_seq.svh:197 Compile class "uvm_pkg::uvm_mem_walk_seq".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_monitor.svh:34 Compile class "uvm_pkg::uvm_monitor".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:105 Compile class "uvm_pkg::uvm_nonblocking_get_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:107 Compile class "uvm_pkg::uvm_nonblocking_get_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:141 Compile class "uvm_pkg::uvm_nonblocking_get_peek_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:143 Compile class "uvm_pkg::uvm_nonblocking_get_peek_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:142 Compile class "uvm_pkg::uvm_nonblocking_get_peek_port".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:106 Compile class "uvm_pkg::uvm_nonblocking_get_port".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:277 Compile class "uvm_pkg::uvm_nonblocking_slave_imp".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:208 Compile class "uvm_pkg::uvm_nonblocking_master_export".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_mem_mam.svh:520 Compile class "uvm_pkg::uvm_mem_mam_policy".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:244 Compile class "uvm_pkg::uvm_nonblocking_master_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:211 Compile class "uvm_pkg::uvm_nonblocking_master_port".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:123 Compile class "uvm_pkg::uvm_nonblocking_peek_export".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:125 Compile class "uvm_pkg::uvm_nonblocking_peek_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:124 Compile class "uvm_pkg::uvm_nonblocking_peek_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:87 Compile class "uvm_pkg::uvm_nonblocking_put_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:89 Compile class "uvm_pkg::uvm_nonblocking_put_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:88 Compile class "uvm_pkg::uvm_nonblocking_put_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:229 Compile class "uvm_pkg::uvm_nonblocking_slave_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:277 Compile class "uvm_pkg::uvm_nonblocking_slave_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:232 Compile class "uvm_pkg::uvm_nonblocking_slave_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:249 Compile class "uvm_pkg::uvm_nonblocking_transport_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:305 Compile class "uvm_pkg::uvm_nonblocking_transport_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:252 Compile class "uvm_pkg::uvm_nonblocking_transport_port".
+
[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:114 Compile class "uvm_pkg::uvm_obj_rsrc".
[INFO :CP0302] uvm-1.2/src/base/uvm_object.svh:46 Compile class "uvm_pkg::uvm_object".
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_shared_access_seq.svh:205 Compile class "uvm_pkg::uvm_mem_shared_access_seq".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:125 Compile class "uvm_pkg::uvm_nonblocking_peek_imp".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:810 Compile class "uvm_pkg::uvm_object_wrapper".
-
-[INFO :CP0302] uvm-1.2/src/comps/uvm_monitor.svh:34 Compile class "uvm_pkg::uvm_monitor".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:141 Compile class "uvm_pkg::uvm_parent_child_link".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:229 Compile class "uvm_pkg::uvm_nonblocking_slave_export".
-
-[INFO :CP0302] uvm-1.2/src/macros/uvm_callback_defines.svh:59 Compile class "uvm_pkg::uvm_objection".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:105 Compile class "uvm_pkg::uvm_nonblocking_get_export".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_phase.svh:134 Compile class "uvm_pkg::uvm_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:305 Compile class "uvm_pkg::uvm_nonblocking_transport_imp".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:107 Compile class "uvm_pkg::uvm_nonblocking_get_imp".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_registry.svh:187 Compile class "uvm_pkg::uvm_object_registry".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:143 Compile class "uvm_pkg::uvm_nonblocking_get_peek_imp".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_bit_bash_seq.svh:203 Compile class "uvm_pkg::uvm_reg_bit_bash_seq".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:129 Compile class "uvm_pkg::uvm_peek_export".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:411 Compile class "uvm_pkg::uvm_post_main_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:208 Compile class "uvm_pkg::uvm_nonblocking_master_export".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_file.svh:34 Compile class "uvm_pkg::uvm_reg_file".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:131 Compile class "uvm_pkg::uvm_peek_imp".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:535 Compile class "uvm_pkg::uvm_post_shutdown_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:124 Compile class "uvm_pkg::uvm_nonblocking_peek_port".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_sequence.svh:518 Compile class "uvm_pkg::uvm_reg_frontdoor".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:130 Compile class "uvm_pkg::uvm_peek_port".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:329 Compile class "uvm_pkg::uvm_pre_main_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:88 Compile class "uvm_pkg::uvm_nonblocking_put_port".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_hw_reset_seq.svh:48 Compile class "uvm_pkg::uvm_reg_hw_reset_seq".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_phase.svh:731 Compile class "uvm_pkg::uvm_phase_cb".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:450 Compile class "uvm_pkg::uvm_pre_shutdown_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:249 Compile class "uvm_pkg::uvm_nonblocking_transport_export".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_item.svh:41 Compile class "uvm_pkg::uvm_reg_item".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_phase.svh:675 Compile class "uvm_pkg::uvm_phase_state_change".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:416 Compile class "uvm_pkg::uvm_printer_knobs".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:252 Compile class "uvm_pkg::uvm_nonblocking_transport_port".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_hdl_paths_seq.svh:48 Compile class "uvm_pkg::uvm_reg_mem_hdl_paths_seq".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_port_base.svh:196 Compile class "uvm_pkg::uvm_port_base".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_push_sequencer.svh:29 Compile class "uvm_pkg::uvm_push_sequencer".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_pool.svh:247 Compile class "uvm_pkg::uvm_object_string_pool".
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_bit_bash_seq.svh:54 Compile class "uvm_pkg::uvm_reg_single_bit_bash_seq".
+[INFO :CP0302] uvm-1.2/src/base/uvm_factory.svh:810 Compile class "uvm_pkg::uvm_object_wrapper".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:93 Compile class "uvm_pkg::uvm_put_export".
+[INFO :CP0302] uvm-1.2/src/macros/uvm_callback_defines.svh:59 Compile class "uvm_pkg::uvm_objection".
[INFO :CP0302] uvm-1.2/src/base/uvm_objection.svh:1418 Compile class "uvm_pkg::uvm_objection_callback".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg.svh:37 Compile class "uvm_pkg::uvm_reg".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:94 Compile class "uvm_pkg::uvm_put_port".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:38 Compile class "uvm_pkg::uvm_report_message_element_base".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_objection.svh:1368 Compile class "uvm_pkg::uvm_objection_context_object".
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_builtin.svh:48 Compile class "uvm_pkg::uvm_random_sequence".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_objection.svh:32 Compile class "uvm_pkg::uvm_objection_events".
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:284 Compile class "uvm_pkg::uvm_report_message_element_container".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_cbs.svh:44 Compile class "uvm_pkg::uvm_reg_cbs".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_recorder.svh:43 Compile class "uvm_pkg::uvm_recorder".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_packer.svh:40 Compile class "uvm_pkg::uvm_packer".
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:108 Compile class "uvm_pkg::uvm_report_message_int_element".
+[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:141 Compile class "uvm_pkg::uvm_parent_child_link".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_fifo.svh:35 Compile class "uvm_pkg::uvm_reg_fifo".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:129 Compile class "uvm_pkg::uvm_peek_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:131 Compile class "uvm_pkg::uvm_peek_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:130 Compile class "uvm_pkg::uvm_peek_port".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_phase.svh:134 Compile class "uvm_pkg::uvm_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_phase.svh:731 Compile class "uvm_pkg::uvm_phase_cb".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_phase.svh:675 Compile class "uvm_pkg::uvm_phase_state_change".
[INFO :CP0302] uvm-1.2/src/base/uvm_pool.svh:35 Compile class "uvm_pkg::uvm_pool".
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:174 Compile class "uvm_pkg::uvm_report_message_string_element".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_block.svh:38 Compile class "uvm_pkg::uvm_reg_block".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_indirect.svh:39 Compile class "uvm_pkg::uvm_reg_indirect_data".
+[INFO :CP0302] uvm-1.2/src/base/uvm_port_base.svh:196 Compile class "uvm_pkg::uvm_port_base".
[INFO :CP0302] uvm-1.2/src/base/uvm_port_base.svh:109 Compile class "uvm_pkg::uvm_port_component".
-[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:390 Compile class "uvm_pkg::uvm_report_phase".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_port_base.svh:51 Compile class "uvm_pkg::uvm_port_component_base".
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_server.svh:46 Compile class "uvm_pkg::uvm_report_server".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_predictor.svh:54 Compile class "uvm_pkg::uvm_reg_predictor".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:290 Compile class "uvm_pkg::uvm_post_configure_phase".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_indirect.svh:283 Compile class "uvm_pkg::uvm_reg_indirect_ftdr_seq".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_shared_access_seq.svh:57 Compile class "uvm_pkg::uvm_reg_shared_access_seq".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:199 Compile class "uvm_pkg::uvm_resource_base".
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:411 Compile class "uvm_pkg::uvm_post_main_phase".
[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:163 Compile class "uvm_pkg::uvm_post_reset_phase".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_map.svh:23 Compile class "uvm_pkg::uvm_reg_map_info".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_adapter.svh:170 Compile class "uvm_pkg::uvm_reg_tlm_adapter".
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:535 Compile class "uvm_pkg::uvm_post_shutdown_phase".
[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:206 Compile class "uvm_pkg::uvm_pre_configure_phase".
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_access_seq.svh:318 Compile class "uvm_pkg::uvm_reg_mem_access_seq".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource_db.svh:350 Compile class "uvm_pkg::uvm_resource_db_options".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_catcher.svh:107 Compile class "uvm_pkg::uvm_report_catcher".
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:329 Compile class "uvm_pkg::uvm_pre_main_phase".
[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:74 Compile class "uvm_pkg::uvm_pre_reset_phase".
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:658 Compile class "uvm_pkg::uvm_resource_pool".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_built_in_seq.svh:31 Compile class "uvm_pkg::uvm_reg_mem_built_in_seq".
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:450 Compile class "uvm_pkg::uvm_pre_shutdown_phase".
[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_predictor.svh:34 Compile class "uvm_pkg::uvm_predict_s".
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:122 Compile class "uvm_pkg::uvm_reset_phase".
-
[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:74 Compile class "uvm_pkg::uvm_printer".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_cbs.svh:369 Compile class "uvm_pkg::uvm_reg_read_only_cbs".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:1369 Compile class "uvm_pkg::uvm_resource".
+[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:416 Compile class "uvm_pkg::uvm_printer_knobs".
[INFO :CP0302] uvm-1.2/src/comps/uvm_push_driver.svh:39 Compile class "uvm_pkg::uvm_push_driver".
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_access_seq.svh:62 Compile class "uvm_pkg::uvm_reg_single_access_seq".
+[INFO :CP0302] uvm-1.2/src/seq/uvm_push_sequencer.svh:29 Compile class "uvm_pkg::uvm_push_sequencer".
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:158 Compile class "uvm_pkg::uvm_resource_options".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_param_base.svh:31 Compile class "uvm_pkg::uvm_sequencer_param_base".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:93 Compile class "uvm_pkg::uvm_put_export".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:95 Compile class "uvm_pkg::uvm_put_imp".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_map.svh:38 Compile class "uvm_pkg::uvm_reg_transaction_order_policy".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:111 Compile class "uvm_pkg::uvm_resource_types".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:94 Compile class "uvm_pkg::uvm_put_port".
[INFO :CP0302] uvm-1.2/src/base/uvm_queue.svh:34 Compile class "uvm_pkg::uvm_queue".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_cbs.svh:455 Compile class "uvm_pkg::uvm_reg_write_only_cbs".
-
-[INFO :CP0302] uvm-1.2/src/dap/uvm_set_get_dap_base.svh:32 Compile class "uvm_pkg::uvm_set_get_dap_base".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_root.svh:71 Compile class "uvm_pkg::uvm_root".
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_builtin.svh:48 Compile class "uvm_pkg::uvm_random_sequence".
[INFO :CP0302] uvm-1.2/src/comps/uvm_random_stimulus.svh:45 Compile class "uvm_pkg::uvm_random_stimulus".
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_handler.svh:53 Compile class "uvm_pkg::uvm_report_handler".
+[INFO :CP0302] uvm-1.2/src/base/uvm_recorder.svh:43 Compile class "uvm_pkg::uvm_recorder".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg.svh:37 Compile class "uvm_pkg::uvm_reg".
[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_access_seq.svh:193 Compile class "uvm_pkg::uvm_reg_access_seq".
-[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:492 Compile class "uvm_pkg::uvm_shutdown_phase".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:267 Compile class "uvm_pkg::uvm_run_phase".
-
[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_adapter.svh:39 Compile class "uvm_pkg::uvm_reg_adapter".
-[INFO :CP0302] uvm-1.2/src/dap/uvm_simple_lock_dap.svh:35 Compile class "uvm_pkg::uvm_simple_lock_dap".
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_backdoor.svh:37 Compile class "uvm_pkg::uvm_reg_backdoor".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_bit_bash_seq.svh:203 Compile class "uvm_pkg::uvm_reg_bit_bash_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_block.svh:38 Compile class "uvm_pkg::uvm_reg_block".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_cbs.svh:44 Compile class "uvm_pkg::uvm_reg_cbs".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_field.svh:39 Compile class "uvm_pkg::uvm_reg_field".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_fifo.svh:35 Compile class "uvm_pkg::uvm_reg_fifo".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_file.svh:34 Compile class "uvm_pkg::uvm_reg_file".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_sequence.svh:518 Compile class "uvm_pkg::uvm_reg_frontdoor".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_hw_reset_seq.svh:48 Compile class "uvm_pkg::uvm_reg_hw_reset_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_indirect.svh:39 Compile class "uvm_pkg::uvm_reg_indirect_data".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_indirect.svh:283 Compile class "uvm_pkg::uvm_reg_indirect_ftdr_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_item.svh:41 Compile class "uvm_pkg::uvm_reg_item".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_map.svh:68 Compile class "uvm_pkg::uvm_reg_map".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_map.svh:23 Compile class "uvm_pkg::uvm_reg_map_info".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_access_seq.svh:318 Compile class "uvm_pkg::uvm_reg_mem_access_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_built_in_seq.svh:31 Compile class "uvm_pkg::uvm_reg_mem_built_in_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_hdl_paths_seq.svh:48 Compile class "uvm_pkg::uvm_reg_mem_hdl_paths_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_shared_access_seq.svh:353 Compile class "uvm_pkg::uvm_reg_mem_shared_access_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_predictor.svh:54 Compile class "uvm_pkg::uvm_reg_predictor".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_cbs.svh:369 Compile class "uvm_pkg::uvm_reg_read_only_cbs".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_sequence.svh:57 Compile class "uvm_pkg::uvm_reg_sequence".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_shared_access_seq.svh:57 Compile class "uvm_pkg::uvm_reg_shared_access_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_access_seq.svh:62 Compile class "uvm_pkg::uvm_reg_single_access_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_bit_bash_seq.svh:54 Compile class "uvm_pkg::uvm_reg_single_bit_bash_seq".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_adapter.svh:170 Compile class "uvm_pkg::uvm_reg_tlm_adapter".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_map.svh:38 Compile class "uvm_pkg::uvm_reg_transaction_order_policy".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_cbs.svh:455 Compile class "uvm_pkg::uvm_reg_write_only_cbs".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:300 Compile class "uvm_pkg::uvm_related_link".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_catcher.svh:107 Compile class "uvm_pkg::uvm_report_catcher".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_handler.svh:53 Compile class "uvm_pkg::uvm_report_handler".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:475 Compile class "uvm_pkg::uvm_report_message".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:38 Compile class "uvm_pkg::uvm_report_message_element_base".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:284 Compile class "uvm_pkg::uvm_report_message_element_container".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:108 Compile class "uvm_pkg::uvm_report_message_int_element".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:228 Compile class "uvm_pkg::uvm_report_message_object_element".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:174 Compile class "uvm_pkg::uvm_report_message_string_element".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_object.svh:79 Compile class "uvm_pkg::uvm_report_object".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:390 Compile class "uvm_pkg::uvm_report_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_report_server.svh:46 Compile class "uvm_pkg::uvm_report_server".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:122 Compile class "uvm_pkg::uvm_reset_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:1369 Compile class "uvm_pkg::uvm_resource".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:199 Compile class "uvm_pkg::uvm_resource_base".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource_db.svh:54 Compile class "uvm_pkg::uvm_resource_db".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource_db.svh:350 Compile class "uvm_pkg::uvm_resource_db_options".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:158 Compile class "uvm_pkg::uvm_resource_options".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:658 Compile class "uvm_pkg::uvm_resource_pool".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource.svh:111 Compile class "uvm_pkg::uvm_resource_types".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_root.svh:71 Compile class "uvm_pkg::uvm_root".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:267 Compile class "uvm_pkg::uvm_run_phase".
[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:63 Compile class "uvm_pkg::uvm_scope_stack".
[INFO :CP0302] uvm-1.2/src/comps/uvm_scoreboard.svh:36 Compile class "uvm_pkg::uvm_scoreboard".
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_backdoor.svh:37 Compile class "uvm_pkg::uvm_reg_backdoor".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_spell_chkr.svh:28 Compile class "uvm_pkg::uvm_spell_chkr".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_base.svh:134 Compile class "uvm_pkg::uvm_sequence_base".
+[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:318 Compile class "uvm_pkg::uvm_seed_map".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_sqr_connections.svh:62 Compile class "uvm_pkg::uvm_seq_item_pull_export".
-[INFO :CP0302] uvm-1.2/src/base/uvm_recorder.svh:728 Compile class "uvm_pkg::uvm_text_recorder".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_field.svh:39 Compile class "uvm_pkg::uvm_reg_field".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_sqr_connections.svh:78 Compile class "uvm_pkg::uvm_seq_item_pull_imp".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_sqr_connections.svh:42 Compile class "uvm_pkg::uvm_seq_item_pull_port".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifos.svh:46 Compile class "uvm_pkg::uvm_tlm_fifo".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_library.svh:64 Compile class "uvm_pkg::uvm_sequence_library".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_tr_database.svh:295 Compile class "uvm_pkg::uvm_text_tr_database".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:155 Compile class "uvm_pkg::uvm_tlm_nb_initiator_socket".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_map.svh:68 Compile class "uvm_pkg::uvm_reg_map".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:271 Compile class "uvm_pkg::uvm_tlm_b_passthrough_initiator_socket".
-
-[INFO :CP0302] uvm-1.2/src/macros/uvm_object_defines.svh:245 Compile class "uvm_pkg::uvm_sequence_library_cfg".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:395 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_target_socket".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:188 Compile class "uvm_pkg::uvm_tlm_b_passthrough_target_socket_base".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:223 Compile class "uvm_pkg::uvm_tlm_nb_target_socket".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_base.svh:27 Compile class "uvm_pkg::uvm_sequence_process_wrapper".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_imps.svh:135 Compile class "uvm_pkg::uvm_tlm_b_transport_imp".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ports.svh:67 Compile class "uvm_pkg::uvm_tlm_nb_transport_bw_port".
-
-[INFO :CP0302] uvm-1.2/src/reg/sequences/uvm_reg_mem_shared_access_seq.svh:353 Compile class "uvm_pkg::uvm_reg_mem_shared_access_seq".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_generic_payload.svh:948 Compile class "uvm_pkg::uvm_tlm_extension_base".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_base.svh:1765 Compile class "uvm_pkg::uvm_sequence_request".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ports.svh:51 Compile class "uvm_pkg::uvm_tlm_nb_transport_fw_port".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_reg_sequence.svh:57 Compile class "uvm_pkg::uvm_reg_sequence".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifo_base.svh:46 Compile class "uvm_pkg::uvm_tlm_fifo_base".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer.svh:30 Compile class "uvm_pkg::uvm_sequencer".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_req_rsp.svh:304 Compile class "uvm_pkg::uvm_tlm_transport_channel".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_links.svh:300 Compile class "uvm_pkg::uvm_related_link".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:124 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_initiator_socket_base".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_analysis_fifo.svh:23 Compile class "uvm_pkg::uvm_sequencer_analysis_fifo".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:115 Compile class "uvm_pkg::uvm_top_down_visitor_adapter".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:475 Compile class "uvm_pkg::uvm_report_message".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:79 Compile class "uvm_pkg::uvm_tlm_nb_target_socket_base".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_base.svh:41 Compile class "uvm_pkg::uvm_sequencer_base".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_topdown_phase.svh:35 Compile class "uvm_pkg::uvm_topdown_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_imps.svh:197 Compile class "uvm_pkg::uvm_tlm_nb_transport_bw_imp".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_tr_stream.svh:54 Compile class "uvm_pkg::uvm_tr_stream".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_message.svh:228 Compile class "uvm_pkg::uvm_report_message_object_element".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_imps.svh:181 Compile class "uvm_pkg::uvm_tlm_nb_transport_fw_imp".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_report_object.svh:79 Compile class "uvm_pkg::uvm_report_object".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:30 Compile class "uvm_pkg::uvm_visitor".
-
-[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_builtin.svh:265 Compile class "uvm_pkg::uvm_simple_sequence".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_time.svh:31 Compile class "uvm_pkg::uvm_tlm_time".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:92 Compile class "uvm_pkg::uvm_visitor_adapter".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:288 Compile class "uvm_pkg::uvm_slave_imp".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_vreg.svh:618 Compile class "uvm_pkg::uvm_vreg_cbs".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource_db.svh:54 Compile class "uvm_pkg::uvm_resource_db".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_tr_database.svh:52 Compile class "uvm_pkg::uvm_tr_database".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_sqr_ifs.svh:36 Compile class "uvm_pkg::uvm_sqr_if_base".
-
-[INFO :CP0302] uvm-1.2/src/reg/uvm_vreg_field.svh:49 Compile class "uvm_pkg::uvm_vreg_field".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:318 Compile class "uvm_pkg::uvm_seed_map".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:358 Compile class "uvm_pkg::uvm_tree_printer".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:93 Compile class "uvm_pkg::uvm_string_rsrc".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_sqr_connections.svh:78 Compile class "uvm_pkg::uvm_seq_item_pull_imp".
-
-[INFO :CP0302] /home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv:4 Compile class "work@mailbox".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:175 Compile class "uvm_pkg::uvm_typed_callbacks".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:73 Compile class "uvm_pkg::uvm_structure_proxy".
-
-[INFO :CP0302] /home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv:58 Compile class "work@semaphore".
-
[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence.svh:33 Compile class "uvm_pkg::uvm_sequence".
-[INFO :CP0302] uvm-1.2/src/comps/uvm_subscriber.svh:36 Compile class "uvm_pkg::uvm_subscriber".
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_base.svh:134 Compile class "uvm_pkg::uvm_sequence_base".
[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_item.svh:37 Compile class "uvm_pkg::uvm_sequence_item".
-[INFO :CP0302] uvm-1.2/src/base/uvm_task_phase.svh:58 Compile class "uvm_pkg::uvm_task_phase".
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_library.svh:64 Compile class "uvm_pkg::uvm_sequence_library".
-[INFO :CP0302] uvm-1.2/src/base/uvm_tr_stream.svh:510 Compile class "uvm_pkg::uvm_text_tr_stream".
+[INFO :CP0302] uvm-1.2/src/macros/uvm_object_defines.svh:245 Compile class "uvm_pkg::uvm_sequence_library_cfg".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_base.svh:27 Compile class "uvm_pkg::uvm_sequence_process_wrapper".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_base.svh:1765 Compile class "uvm_pkg::uvm_sequence_request".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer.svh:30 Compile class "uvm_pkg::uvm_sequencer".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_analysis_fifo.svh:23 Compile class "uvm_pkg::uvm_sequencer_analysis_fifo".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_base.svh:41 Compile class "uvm_pkg::uvm_sequencer_base".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequencer_param_base.svh:31 Compile class "uvm_pkg::uvm_sequencer_param_base".
[INFO :CP0302] uvm-1.2/src/dap/uvm_set_before_get_dap.svh:68 Compile class "uvm_pkg::uvm_set_before_get_dap".
+[INFO :CP0302] uvm-1.2/src/dap/uvm_set_get_dap_base.svh:32 Compile class "uvm_pkg::uvm_set_get_dap_base".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_runtime_phases.svh:492 Compile class "uvm_pkg::uvm_shutdown_phase".
+
+[INFO :CP0302] uvm-1.2/src/dap/uvm_simple_lock_dap.svh:35 Compile class "uvm_pkg::uvm_simple_lock_dap".
+
+[INFO :CP0302] uvm-1.2/src/seq/uvm_sequence_builtin.svh:265 Compile class "uvm_pkg::uvm_simple_sequence".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:236 Compile class "uvm_pkg::uvm_slave_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:288 Compile class "uvm_pkg::uvm_slave_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:239 Compile class "uvm_pkg::uvm_slave_port".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_spell_chkr.svh:28 Compile class "uvm_pkg::uvm_spell_chkr".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_sqr_ifs.svh:36 Compile class "uvm_pkg::uvm_sqr_if_base".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:198 Compile class "uvm_pkg::uvm_start_of_simulation_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:206 Compile class "uvm_pkg::uvm_status_container".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_resource_specializations.svh:93 Compile class "uvm_pkg::uvm_string_rsrc".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:73 Compile class "uvm_pkg::uvm_structure_proxy".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_subscriber.svh:36 Compile class "uvm_pkg::uvm_subscriber".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:309 Compile class "uvm_pkg::uvm_table_printer".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_task_phase.svh:58 Compile class "uvm_pkg::uvm_task_phase".
+
+[INFO :CP0302] uvm-1.2/src/comps/uvm_test.svh:62 Compile class "uvm_pkg::uvm_test".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_objection.svh:1119 Compile class "uvm_pkg::uvm_test_done_objection".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_recorder.svh:728 Compile class "uvm_pkg::uvm_text_recorder".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_tr_database.svh:295 Compile class "uvm_pkg::uvm_text_tr_database".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_tr_stream.svh:510 Compile class "uvm_pkg::uvm_text_tr_stream".
+
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifos.svh:200 Compile class "uvm_pkg::uvm_tlm_analysis_fifo".
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:56 Compile class "uvm_pkg::uvm_tlm_b_initiator_socket".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:236 Compile class "uvm_pkg::uvm_slave_export".
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:66 Compile class "uvm_pkg::uvm_tlm_b_initiator_socket_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:271 Compile class "uvm_pkg::uvm_tlm_b_passthrough_initiator_socket".
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:174 Compile class "uvm_pkg::uvm_tlm_b_passthrough_initiator_socket_base".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:239 Compile class "uvm_pkg::uvm_slave_port".
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:308 Compile class "uvm_pkg::uvm_tlm_b_passthrough_target_socket".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:188 Compile class "uvm_pkg::uvm_tlm_b_passthrough_target_socket_base".
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:104 Compile class "uvm_pkg::uvm_tlm_b_target_socket".
-[INFO :CP0302] uvm-1.2/src/base/uvm_common_phases.svh:198 Compile class "uvm_pkg::uvm_start_of_simulation_phase".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifo_base.svh:24 Compile class "uvm_pkg::uvm_tlm_event".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:206 Compile class "uvm_pkg::uvm_status_container".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_generic_payload.svh:1013 Compile class "uvm_pkg::uvm_tlm_extension".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ifs.svh:79 Compile class "uvm_pkg::uvm_tlm_if".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:309 Compile class "uvm_pkg::uvm_table_printer".
-
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_ifs.svh:46 Compile class "uvm_pkg::uvm_tlm_if_base".
-
-[INFO :CP0302] uvm-1.2/src/comps/uvm_test.svh:62 Compile class "uvm_pkg::uvm_test".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:101 Compile class "uvm_pkg::uvm_tlm_nb_initiator_socket_base".
-
-[INFO :CP0302] uvm-1.2/src/base/uvm_objection.svh:1119 Compile class "uvm_pkg::uvm_test_done_objection".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:345 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_initiator_socket".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:149 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_target_socket_base".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:66 Compile class "uvm_pkg::uvm_tlm_b_initiator_socket_base".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_exports.svh:59 Compile class "uvm_pkg::uvm_tlm_nb_transport_bw_export".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:308 Compile class "uvm_pkg::uvm_tlm_b_passthrough_target_socket".
-
-[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_exports.svh:46 Compile class "uvm_pkg::uvm_tlm_nb_transport_fw_export".
-
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:47 Compile class "uvm_pkg::uvm_tlm_b_target_socket_base".
-[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_req_rsp.svh:46 Compile class "uvm_pkg::uvm_tlm_req_rsp_channel".
-
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_exports.svh:33 Compile class "uvm_pkg::uvm_tlm_b_transport_export".
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_imps.svh:135 Compile class "uvm_pkg::uvm_tlm_b_transport_imp".
+
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ports.svh:34 Compile class "uvm_pkg::uvm_tlm_b_transport_port".
-[INFO :CP0302] uvm-1.2/src/base/uvm_transaction.svh:124 Compile class "uvm_pkg::uvm_transaction".
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifo_base.svh:24 Compile class "uvm_pkg::uvm_tlm_event".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_generic_payload.svh:1013 Compile class "uvm_pkg::uvm_tlm_extension".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_generic_payload.svh:948 Compile class "uvm_pkg::uvm_tlm_extension_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifos.svh:46 Compile class "uvm_pkg::uvm_tlm_fifo".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_fifo_base.svh:46 Compile class "uvm_pkg::uvm_tlm_fifo_base".
[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_generic_payload.svh:103 Compile class "uvm_pkg::uvm_tlm_generic_payload".
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ifs.svh:79 Compile class "uvm_pkg::uvm_tlm_if".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_ifs.svh:46 Compile class "uvm_pkg::uvm_tlm_if_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:155 Compile class "uvm_pkg::uvm_tlm_nb_initiator_socket".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:101 Compile class "uvm_pkg::uvm_tlm_nb_initiator_socket_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:345 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_initiator_socket".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:124 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_initiator_socket_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:395 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_target_socket".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:149 Compile class "uvm_pkg::uvm_tlm_nb_passthrough_target_socket_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets.svh:223 Compile class "uvm_pkg::uvm_tlm_nb_target_socket".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_sockets_base.svh:79 Compile class "uvm_pkg::uvm_tlm_nb_target_socket_base".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_exports.svh:59 Compile class "uvm_pkg::uvm_tlm_nb_transport_bw_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_imps.svh:197 Compile class "uvm_pkg::uvm_tlm_nb_transport_bw_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ports.svh:67 Compile class "uvm_pkg::uvm_tlm_nb_transport_bw_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_exports.svh:46 Compile class "uvm_pkg::uvm_tlm_nb_transport_fw_export".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_imps.svh:181 Compile class "uvm_pkg::uvm_tlm_nb_transport_fw_imp".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_ports.svh:51 Compile class "uvm_pkg::uvm_tlm_nb_transport_fw_port".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_req_rsp.svh:46 Compile class "uvm_pkg::uvm_tlm_req_rsp_channel".
+
+[INFO :CP0302] uvm-1.2/src/tlm2/uvm_tlm2_time.svh:31 Compile class "uvm_pkg::uvm_tlm_time".
+
+[INFO :CP0302] uvm-1.2/src/tlm1/uvm_tlm_req_rsp.svh:304 Compile class "uvm_pkg::uvm_tlm_transport_channel".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:115 Compile class "uvm_pkg::uvm_top_down_visitor_adapter".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_topdown_phase.svh:35 Compile class "uvm_pkg::uvm_topdown_phase".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_tr_database.svh:52 Compile class "uvm_pkg::uvm_tr_database".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_tr_stream.svh:54 Compile class "uvm_pkg::uvm_tr_stream".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_transaction.svh:124 Compile class "uvm_pkg::uvm_transaction".
+
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_exports.svh:255 Compile class "uvm_pkg::uvm_transport_export".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_imps.svh:311 Compile class "uvm_pkg::uvm_transport_imp".
[INFO :CP0302] uvm-1.2/src/tlm1/uvm_ports.svh:258 Compile class "uvm_pkg::uvm_transport_port".
-[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:61 Compile class "uvm_pkg::uvm_typeid".
+[INFO :CP0302] uvm-1.2/src/base/uvm_printer.svh:358 Compile class "uvm_pkg::uvm_tree_printer".
-[INFO :CP0302] testbench.sv:6 Compile class "work@env".
+[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:175 Compile class "uvm_pkg::uvm_typed_callbacks".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:61 Compile class "uvm_pkg::uvm_typeid".
[INFO :CP0302] uvm-1.2/src/base/uvm_callback.svh:47 Compile class "uvm_pkg::uvm_typeid_base".
[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:635 Compile class "uvm_pkg::uvm_utils".
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:30 Compile class "uvm_pkg::uvm_visitor".
+
+[INFO :CP0302] uvm-1.2/src/base/uvm_traversal.svh:92 Compile class "uvm_pkg::uvm_visitor_adapter".
+
[INFO :CP0302] uvm-1.2/src/base/uvm_misc.svh:39 Compile class "uvm_pkg::uvm_void".
[INFO :CP0302] uvm-1.2/src/reg/uvm_vreg.svh:57 Compile class "uvm_pkg::uvm_vreg".
+[INFO :CP0302] uvm-1.2/src/reg/uvm_vreg.svh:618 Compile class "uvm_pkg::uvm_vreg_cbs".
+
+[INFO :CP0302] uvm-1.2/src/reg/uvm_vreg_field.svh:49 Compile class "uvm_pkg::uvm_vreg_field".
+
[INFO :CP0302] uvm-1.2/src/reg/uvm_vreg_field.svh:379 Compile class "uvm_pkg::uvm_vreg_field_cbs".
+[INFO :CP0302] testbench.sv:6 Compile class "work@env".
+
+[INFO :CP0302] /home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv:4 Compile class "work@mailbox".
+
[INFO :CP0302] /home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv:33 Compile class "work@process".
+[INFO :CP0302] /home/alain/Surelog/SVIncCompil/dist/surelog/bin/../sv/builtin.sv:58 Compile class "work@semaphore".
+
[INFO :EL0526] Design Elaboration...
[NOTE :EL0503] testbench.sv:45 Top level module "work@top".
@@ -767,5 +763,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-2.71user 0.08system 0:01.83elapsed 152%CPU (0avgtext+0avgdata 119912maxresident)k
-272inputs+7880outputs (0major+32234minor)pagefaults 0swaps
+2.27user 0.07system 0:02.35elapsed 99%CPU (0avgtext+0avgdata 116552maxresident)k
+0inputs+7688outputs (0major+31471minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/SimpleVMM/SimpleVMM.log b/SVIncCompil/Testcases/SimpleVMM/SimpleVMM.log
index 4945723..a3aca02 100644
--- a/SVIncCompil/Testcases/SimpleVMM/SimpleVMM.log
+++ b/SVIncCompil/Testcases/SimpleVMM/SimpleVMM.log
@@ -212,5 +212,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-22.04user 0.17system 0:22.25elapsed 99%CPU (0avgtext+0avgdata 291468maxresident)k
-496inputs+11392outputs (0major+75112minor)pagefaults 0swaps
+22.15user 0.17system 0:22.58elapsed 98%CPU (0avgtext+0avgdata 291476maxresident)k
+920inputs+11392outputs (0major+75107minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/UnitDefParam/UnitDefParam_diff.log b/SVIncCompil/Testcases/UnitDefParam/UnitDefParam_diff.log
index a793fd3..201098b 100644
--- a/SVIncCompil/Testcases/UnitDefParam/UnitDefParam_diff.log
+++ b/SVIncCompil/Testcases/UnitDefParam/UnitDefParam_diff.log
@@ -990,5 +990,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-0.75user 0.01system 0:00.84elapsed 91%CPU (0avgtext+0avgdata 45648maxresident)k
-16inputs+144outputs (0major+13714minor)pagefaults 0swaps
+0.73user 0.02system 0:00.76elapsed 100%CPU (0avgtext+0avgdata 45596maxresident)k
+0inputs+144outputs (0major+13733minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/UnitForLoop/UnitForLoop.log b/SVIncCompil/Testcases/UnitForLoop/UnitForLoop.log
index 2d28cc1..747fe1e 100644
--- a/SVIncCompil/Testcases/UnitForLoop/UnitForLoop.log
+++ b/SVIncCompil/Testcases/UnitForLoop/UnitForLoop.log
@@ -328,5 +328,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-0.36user 0.02system 0:00.38elapsed 100%CPU (0avgtext+0avgdata 45660maxresident)k
-0inputs+16outputs (0major+13188minor)pagefaults 0swaps
+0.35user 0.03system 0:00.38elapsed 99%CPU (0avgtext+0avgdata 45852maxresident)k
+0inputs+16outputs (0major+13198minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/UnitPackage/UnitPackage.log b/SVIncCompil/Testcases/UnitPackage/UnitPackage.log
index 795a6c8..287a715 100644
--- a/SVIncCompil/Testcases/UnitPackage/UnitPackage.log
+++ b/SVIncCompil/Testcases/UnitPackage/UnitPackage.log
@@ -1014,5 +1014,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-1.50user 0.04system 0:01.55elapsed 99%CPU (0avgtext+0avgdata 58580maxresident)k
-0inputs+160outputs (0major+16989minor)pagefaults 0swaps
+1.49user 0.04system 0:01.53elapsed 99%CPU (0avgtext+0avgdata 58768maxresident)k
+0inputs+160outputs (0major+16993minor)pagefaults 0swaps
diff --git a/SVIncCompil/Testcases/YosysSmall/YosysSmall_diff.log b/SVIncCompil/Testcases/YosysSmall/YosysSmall_diff.log
index 5fe3a3f..d283328 100644
--- a/SVIncCompil/Testcases/YosysSmall/YosysSmall_diff.log
+++ b/SVIncCompil/Testcases/YosysSmall/YosysSmall_diff.log
@@ -71,5 +71,5 @@
* End SURELOG SVerilog Compiler/Linter *
********************************************
-1.50user 0.02system 0:01.53elapsed 99%CPU (0avgtext+0avgdata 48020maxresident)k
-0inputs+608outputs (0major+9725minor)pagefaults 0swaps
+1.54user 0.01system 0:01.55elapsed 99%CPU (0avgtext+0avgdata 48404maxresident)k
+0inputs+608outputs (0major+9735minor)pagefaults 0swaps
diff --git a/SVIncCompil/Utils/FileUtils.h b/SVIncCompil/Utils/FileUtils.h
index fcc3580..ce65776 100644
--- a/SVIncCompil/Utils/FileUtils.h
+++ b/SVIncCompil/Utils/FileUtils.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: FileUtils.h
* Author: alain
*
@@ -28,36 +28,38 @@
namespace SURELOG {
class FileUtils {
-public:
- static bool fileExists(const std::string name);
- static bool fileIsRegular(const std::string name);
- static bool fileIsDirectory(const std::string name);
- static SymbolId locateFile(SymbolId file, SymbolTable* symbols, const std::vector<SymbolId>& paths);
- static int mkDir(const char *path);
+ public:
+ static bool fileExists(const std::string name);
+ static bool fileIsRegular(const std::string name);
+ static bool fileIsDirectory(const std::string name);
+ static SymbolId locateFile(SymbolId file, SymbolTable* symbols,
+ const std::vector<SymbolId>& paths);
+ static int mkDir(const char* path);
static std::string getFullPath(const std::string path);
static std::string getPathName(const std::string path);
static unsigned long fileSize(const std::string name);
- static std::vector<SymbolId> collectFiles(const std::string dirPath, const std::string extension, SymbolTable* symbols);
- static std::vector<SymbolId> collectFiles(SymbolId dirPath, SymbolId extension, SymbolTable* symbols);
- static std::vector<SymbolId> collectFilesRegexp(const std::string dirPath, const std::string regexp, SymbolTable* symbols);
- static void collectFiles(const std::string dirPath,
- std::vector<std::string>& dirs,
- unsigned int level,
- SymbolTable* symbols,
- std::vector<SymbolId>& files);
- static std::vector<SymbolId> collectFiles(std::string pathSpec, SymbolTable* symbols);
- static std::string getFileContent(const std::string name);
-private:
- FileUtils();
- FileUtils(const FileUtils& orig);
- virtual ~FileUtils();
+ static std::vector<SymbolId> collectFiles(const std::string dirPath,
+ const std::string extension,
+ SymbolTable* symbols);
+ static std::vector<SymbolId> collectFiles(SymbolId dirPath,
+ SymbolId extension,
+ SymbolTable* symbols);
+ static std::vector<SymbolId> collectFilesRegexp(const std::string dirPath,
+ const std::string regexp,
+ SymbolTable* symbols);
+ static void collectFiles(const std::string dirPath,
+ std::vector<std::string>& dirs, unsigned int level,
+ SymbolTable* symbols, std::vector<SymbolId>& files);
+ static std::vector<SymbolId> collectFiles(std::string pathSpec,
+ SymbolTable* symbols);
+ static std::string getFileContent(const std::string name);
+ private:
+ FileUtils();
+ FileUtils(const FileUtils& orig);
+ virtual ~FileUtils();
};
-};
+}; // namespace SURELOG
#endif /* FILEUTILS_H */
-
-
-
-
diff --git a/SVIncCompil/Utils/HashMap.h b/SVIncCompil/Utils/HashMap.h
index df95578..cbb2635 100644
--- a/SVIncCompil/Utils/HashMap.h
+++ b/SVIncCompil/Utils/HashMap.h
@@ -8,375 +8,354 @@
#include <condition_variable>
/*
-* wrapper for items stored in the map
-*/
-template<typename K, typename V>
+ * wrapper for items stored in the map
+ */
+template <typename K, typename V>
class HashItem {
-public:
- HashItem(K key, V value) {
- this->key = key;
- this->value = value;
- this->nextItem = nullptr;
- }
+ public:
+ HashItem(K key, V value) {
+ this->key = key;
+ this->value = value;
+ this->nextItem = nullptr;
+ }
- /*
- * copy constructor
- */
- HashItem(const HashItem & item) {
- this->key = item.getKey();
- this->value = item.getValue();
- this->nextItem = nullptr;
- }
+ /*
+ * copy constructor
+ */
+ HashItem(const HashItem &item) {
+ this->key = item.getKey();
+ this->value = item.getValue();
+ this->nextItem = nullptr;
+ }
- void setNext(HashItem<K, V> * item) {
- this->nextItem = item;
- }
+ void setNext(HashItem<K, V> *item) { this->nextItem = item; }
- HashItem * getNext() {
- return nextItem;
- }
+ HashItem *getNext() { return nextItem; }
- K getKey() {
- return key;
- }
+ K getKey() { return key; }
- V getValue() {
- return value;
- }
+ V getValue() { return value; }
- void setValue(V value) {
- this->value = value;
- }
+ void setValue(V value) { this->value = value; }
-private:
- K key;
- V value;
- HashItem * nextItem;
-
+ private:
+ K key;
+ V value;
+ HashItem *nextItem;
};
/*
-* template HashMap for storing items
-* default hash function HF = std::hash<K>
-*/
+ * template HashMap for storing items
+ * default hash function HF = std::hash<K>
+ */
template <typename K, typename V, typename HF = std::hash<K>>
class HashMap {
-public:
- /*
- * constructor
- * @mSize specifies the bucket size og the map
- */
- HashMap(std::size_t mSize) {
- // lock initialization for single thread
- std::lock_guard<std::mutex>lock(mtx);
- //if (mSize < 1)
- //throw std::exception("Number of buckets ust be greater than zero.");
+ public:
+ /*
+ * constructor
+ * @mSize specifies the bucket size og the map
+ */
+ HashMap(std::size_t mSize) {
+ // lock initialization for single thread
+ std::lock_guard<std::mutex> lock(mtx);
+ // if (mSize < 1)
+ // throw std::exception("Number of buckets ust be greater than zero.");
- mapSize = mSize;
- numOfItems = 0;
- // initialize
- hMap = new HashItem<K, V> *[mapSize]();
+ mapSize = mSize;
+ numOfItems = 0;
+ // initialize
+ hMap = new HashItem<K, V> *[mapSize]();
+ }
+
+ /*
+ * for simplicity no copy constructor
+ * anyway we want test how different threads
+ * use same instance of the map
+ */
+ // HashMap(const HashMap & hmap) = delete;
+
+ /*
+ * inserts item
+ * replaces old value with the new one when item already exists
+ * @key key of the item
+ * @value value of the item
+ */
+ void insert(const K &key, const V &value) {
+ std::lock_guard<std::mutex> lock(mtx);
+ insertHelper(this->hMap, this->mapSize, numOfItems, key, value);
+ condVar.notify_all();
+ }
+
+ /*
+ * erases item with key when siúch item exists
+ * @key of item to erase
+ */
+ void erase(const K &key) {
+ std::lock_guard<std::mutex> lock(mtx);
+ // calculate the bucket where item must be inserted
+ std::size_t hVal = hashFunc(key) % mapSize;
+ HashItem<K, V> *prev = nullptr;
+ HashItem<K, V> *item = hMap[hVal];
+
+ while ((item != nullptr) && (item->getKey() != key)) {
+ prev = item;
+ item = item->getNext();
+ }
+ // no item found with the given key
+ if (item == nullptr) {
+ return;
+ } else {
+ if (prev == nullptr) {
+ // item found is the first item in the bucket
+ hMap[hVal] = item->getNext();
+ } else {
+ // item found in one of the entries in the bucket
+ prev->setNext(item->getNext());
+ }
+ delete item;
+ numOfItems--;
+ }
+ condVar.notify_all();
+ }
+
+ /*
+ * get element with the given key by reference
+ * @key is the key of item that has to be found
+ * @value is the holder where the value of item with key will be copied
+ */
+ bool getItem(const K &key, V &value) const {
+ std::lock_guard<std::mutex> lock(mtx);
+ // calculate the bucket where item must be inserted
+ std::size_t hVal = hashFunc(key) % mapSize;
+ HashItem<K, V> *item = hMap[hVal];
+
+ while ((item != nullptr) && (item->getKey() != key)) item = item->getNext();
+ // item not found
+ if (item == nullptr) {
+ return false;
}
- /*
- * for simplicity no copy constructor
- * anyway we want test how different threads
- * use same instance of the map
- */
- //HashMap(const HashMap & hmap) = delete;
+ value = item->getValue();
+ return true;
+ }
- /*
- * inserts item
- * replaces old value with the new one when item already exists
- * @key key of the item
- * @value value of the item
- */
- void insert(const K & key, const V & value) {
- std::lock_guard<std::mutex>lock(mtx);
- insertHelper(this->hMap, this->mapSize, numOfItems, key, value);
- condVar.notify_all();
+ /*
+ * get element with the given key by reference
+ * @key is the key of item that has to be found
+ * shows an example of thread waitung for some condition
+ * @value is the holder where the value of item with key will be copied
+ */
+ bool getWithWait(const K &key, V &value) {
+ std::unique_lock<std::mutex> ulock(mtxForWait);
+ condVar.wait(ulock, [this] { return !this->empty(); });
+ // calculate the bucket where item must be inserted
+ std::size_t hVal = hashFunc(key) % mapSize;
+ HashItem<K, V> *item = hMap[hVal];
+
+ while ((item != nullptr) && (item->getKey() != key)) item = item->getNext();
+ // item not found
+ if (item == nullptr) {
+ return false;
}
- /*
- * erases item with key when siúch item exists
- * @key of item to erase
- */
- void erase(const K & key) {
- std::lock_guard<std::mutex>lock(mtx);
- // calculate the bucket where item must be inserted
- std::size_t hVal = hashFunc(key) % mapSize;
- HashItem<K, V> * prev = nullptr;
- HashItem<K, V> * item = hMap[hVal];
+ value = item->getValue();
+ return true;
+ }
- while ((item != nullptr) && (item->getKey() != key)) {
- prev = item;
- item = item->getNext();
- }
- // no item found with the given key
- if (item == nullptr) {
- return;
- }
- else {
- if (prev == nullptr) {
- // item found is the first item in the bucket
- hMap[hVal] = item->getNext();
- }
- else {
- // item found in one of the entries in the bucket
- prev->setNext(item->getNext());
- }
- delete item;
- numOfItems--;
- }
- condVar.notify_all();
+ /*
+ * resizes the map
+ * creates new map on heap
+ * copies the elements into new map
+ * @newSize specifies new bucket size
+ */
+ void resize(std::size_t newSize) {
+ std::lock_guard<std::mutex> lock(mtx);
+ if (newSize < 1)
+ throw std::exception("Number of buckets must be greater than zero.");
+
+ resizeHelper(newSize);
+ condVar.notify_all();
+ }
+
+ /*
+ * outputs all items of the map
+ */
+ void outputMap() const {
+ std::lock_guard<std::mutex> lock(mtx);
+ if (numOfItems == 0) {
+ std::cout << "Map is empty." << std::endl << std::endl;
+ return;
+ }
+ std::cout << "Map contains " << numOfItems << " items." << std::endl;
+ for (std::size_t i = 0; i < mapSize; i++) {
+ HashItem<K, V> *item = hMap[i];
+ while (item != nullptr) {
+ std::cout << "Bucket: " << std::setw(3) << i
+ << ", key: " << std::setw(3) << item->getKey()
+ << ", value:" << std::setw(3) << item->getValue()
+ << std::endl;
+ item = item->getNext();
+ }
+ }
+ std::cout << std::endl;
+ }
+
+ /*
+ * returns true when map has no items
+ */
+ bool empty() const {
+ std::lock_guard<std::mutex> lock(mtx);
+ return numOfItems == 0;
+ }
+
+ void clear() {
+ std::lock_guard<std::mutex> lock(mtx);
+ deleteMap(hMap, mapSize);
+ numOfItems = 0;
+ hMap = new HashItem<K, V> *[mapSize]();
+ }
+
+ void deleteDeep() {
+ std::lock_guard<std::mutex> lock(mtx);
+ deleteMapDeep(hMap, mapSize);
+ numOfItems = 0;
+ hMap = new HashItem<K, V> *[mapSize]();
+ }
+
+ /*
+ * returns number of items stored in the map
+ */
+ std::size_t size() const {
+ std::lock_guard<std::mutex> lock(mtx);
+ return numOfItems;
+ }
+
+ /*
+ * returns number of buckets
+ */
+ std::size_t bucket_count() const {
+ std::lock_guard<std::mutex> lock(mtx);
+ return mapSize;
+ }
+
+ /*
+ * desctructor
+ */
+ ~HashMap() {
+ std::lock_guard<std::mutex> lock(mtx);
+ deleteMap(hMap, mapSize);
+ }
+
+ private:
+ std::size_t mapSize;
+ std::size_t numOfItems;
+ HF hashFunc;
+ HashItem<K, V> **hMap;
+ mutable std::mutex mtx;
+ mutable std::mutex mtxForWait;
+ std::condition_variable condVar;
+
+ /*
+ * help method for inserting key, value item into the map hm
+ * mapSize specifies the size of the map, items - the number
+ * of stored items, will be incremented when insertion is completed
+ * @hm HashMap
+ * @mSize specifies number of buckets
+ * @items holds the number of items in hm, will be incremented when insertion
+ * successful
+ * @key - key of item to insert
+ * @value - value of item to insert
+ */
+ void insertHelper(HashItem<K, V> **hm, const std::size_t &mSize,
+ std::size_t &items, const K &key, const V &value) {
+ std::size_t hVal = hashFunc(key) % mSize;
+ HashItem<K, V> *prev = nullptr;
+ HashItem<K, V> *item = hm[hVal];
+
+ while ((item != nullptr) && (item->getKey() != key)) {
+ prev = item;
+ item = item->getNext();
}
- /*
- * get element with the given key by reference
- * @key is the key of item that has to be found
- * @value is the holder where the value of item with key will be copied
- */
- bool getItem(const K & key, V & value) const {
- std::lock_guard<std::mutex>lock(mtx);
- // calculate the bucket where item must be inserted
- std::size_t hVal = hashFunc(key) % mapSize;
- HashItem<K, V> * item = hMap[hVal];
+ // inserting new item
+ if (item == nullptr) {
+ item = new HashItem<K, V>(key, value);
+ items++;
+ if (prev == nullptr) {
+ // insert new value as first item in the bucket
+ hm[hVal] = item;
+ } else {
+ // append new item on previous in the same bucket
+ prev->setNext(item);
+ }
+ } else {
+ // replace existing value
+ item->setValue(value);
+ }
+ }
- while ((item != nullptr) && (item->getKey() != key))
- item = item->getNext();
- // item not found
- if (item == nullptr) {
- return false;
- }
-
- value = item->getValue();
- return true;
+ /*
+ * help method to resize the map
+ * @newSize specifies new number of buckets
+ */
+ void resizeHelper(std::size_t newSize) {
+ HashItem<K, V> **newMap = new HashItem<K, V> *[newSize]();
+ std::size_t items = 0;
+ for (std::size_t i = 0; i < mapSize; i++) {
+ HashItem<K, V> *item = hMap[i];
+ while (item != nullptr) {
+ insertHelper(newMap, newSize, items, item->getKey(), item->getValue());
+ item = item->getNext();
+ }
}
+ deleteMap(hMap, mapSize);
+ hMap = newMap;
+ mapSize = newSize;
+ numOfItems = items;
+ newMap = nullptr;
+ }
- /*
- * get element with the given key by reference
- * @key is the key of item that has to be found
- * shows an example of thread waitung for some condition
- * @value is the holder where the value of item with key will be copied
- */
- bool getWithWait(const K & key, V & value) {
- std::unique_lock<std::mutex>ulock(mtxForWait);
- condVar.wait(ulock, [this] {return !this->empty(); });
- // calculate the bucket where item must be inserted
- std::size_t hVal = hashFunc(key) % mapSize;
- HashItem<K, V> * item = hMap[hVal];
-
- while ((item != nullptr) && (item->getKey() != key))
- item = item->getNext();
- // item not found
- if (item == nullptr) {
- return false;
- }
-
- value = item->getValue();
- return true;
+ /*
+ * help function for deleting the map hm
+ * @hm HashMap
+ * @mSize number of buckets in hm
+ */
+ void deleteMap(HashItem<K, V> **hm, std::size_t mSize) {
+ // delete all nodes
+ for (std::size_t i = 0; i < mSize; ++i) {
+ HashItem<K, V> *item = hm[i];
+ while (item != nullptr) {
+ HashItem<K, V> *prev = item;
+ item = item->getNext();
+ delete prev;
+ }
+ hm[i] = nullptr;
}
+ // delete the map
+ delete[] hm;
+ }
-
- /*
- * resizes the map
- * creates new map on heap
- * copies the elements into new map
- * @newSize specifies new bucket size
- */
- void resize(std::size_t newSize) {
- std::lock_guard<std::mutex>lock(mtx);
- if (newSize < 1)
- throw std::exception("Number of buckets must be greater than zero.");
-
- resizeHelper(newSize);
- condVar.notify_all();
+ /*
+ * help function for deleting the map hm
+ * @hm HashMap
+ * @mSize number of buckets in hm
+ */
+ void deleteMapDeep(HashItem<K, V> **hm, std::size_t mSize) {
+ // delete all nodes
+ for (std::size_t i = 0; i < mSize; ++i) {
+ HashItem<K, V> *item = hm[i];
+ while (item != nullptr) {
+ HashItem<K, V> *prev = item;
+ item = item->getNext();
+ delete prev->getValue();
+ delete prev;
+ }
+ hm[i] = nullptr;
}
-
- /*
- * outputs all items of the map
- */
- void outputMap() const {
- std::lock_guard<std::mutex>lock(mtx);
- if (numOfItems == 0) {
- std::cout << "Map is empty." << std::endl << std::endl;
- return;
- }
- std::cout << "Map contains " << numOfItems << " items." << std::endl;
- for (std::size_t i = 0; i < mapSize; i++) {
- HashItem<K, V> * item = hMap[i];
- while (item != nullptr) {
- std::cout << "Bucket: " << std::setw(3) << i << ", key: " << std::setw(3) << item->getKey() << ", value:" << std::setw(3) << item->getValue() << std::endl;
- item = item->getNext();
- }
- }
- std::cout << std::endl;
- }
-
- /*
- * returns true when map has no items
- */
- bool empty() const {
- std::lock_guard<std::mutex>lock(mtx);
- return numOfItems == 0;
- }
-
- void clear() {
- std::lock_guard<std::mutex>lock(mtx);
- deleteMap(hMap, mapSize);
- numOfItems = 0;
- hMap = new HashItem<K, V> *[mapSize]();
- }
-
- void deleteDeep() {
- std::lock_guard<std::mutex>lock(mtx);
- deleteMapDeep(hMap, mapSize);
- numOfItems = 0;
- hMap = new HashItem<K, V> *[mapSize]();
- }
-
- /*
- * returns number of items stored in the map
- */
- std::size_t size() const {
- std::lock_guard<std::mutex>lock(mtx);
- return numOfItems;
- }
-
- /*
- * returns number of buckets
- */
- std::size_t bucket_count() const {
- std::lock_guard<std::mutex>lock(mtx);
- return mapSize;
- }
-
- /*
- * desctructor
- */
- ~HashMap() {
- std::lock_guard<std::mutex>lock(mtx);
- deleteMap(hMap, mapSize);
- }
-
-private:
- std::size_t mapSize;
- std::size_t numOfItems;
- HF hashFunc;
- HashItem<K, V> ** hMap;
- mutable std::mutex mtx;
- mutable std::mutex mtxForWait;
- std::condition_variable condVar;
-
- /*
- * help method for inserting key, value item into the map hm
- * mapSize specifies the size of the map, items - the number
- * of stored items, will be incremented when insertion is completed
- * @hm HashMap
- * @mSize specifies number of buckets
- * @items holds the number of items in hm, will be incremented when insertion successful
- * @key - key of item to insert
- * @value - value of item to insert
- */
- void insertHelper(HashItem<K, V> ** hm, const std::size_t & mSize, std::size_t & items, const K & key, const V & value) {
- std::size_t hVal = hashFunc(key) % mSize;
- HashItem<K, V> * prev = nullptr;
- HashItem<K, V> * item = hm[hVal];
-
- while ((item != nullptr) && (item->getKey() != key)) {
- prev = item;
- item = item->getNext();
- }
-
- // inserting new item
- if (item == nullptr) {
- item = new HashItem<K, V>(key, value);
- items++;
- if (prev == nullptr) {
- // insert new value as first item in the bucket
- hm[hVal] = item;
- }
- else {
- // append new item on previous in the same bucket
- prev->setNext(item);
- }
- }
- else {
- // replace existing value
- item->setValue(value);
- }
- }
-
- /*
- * help method to resize the map
- * @newSize specifies new number of buckets
- */
- void resizeHelper(std::size_t newSize) {
- HashItem<K, V> ** newMap = new HashItem<K, V> *[newSize]();
- std::size_t items = 0;
- for (std::size_t i = 0; i < mapSize; i++) {
- HashItem<K, V> * item = hMap[i];
- while (item != nullptr) {
- insertHelper(newMap, newSize, items, item->getKey(), item->getValue());
- item = item->getNext();
- }
- }
-
- deleteMap(hMap, mapSize);
- hMap = newMap;
- mapSize = newSize;
- numOfItems = items;
- newMap = nullptr;
-
- }
-
- /*
- * help function for deleting the map hm
- * @hm HashMap
- * @mSize number of buckets in hm
- */
- void deleteMap(HashItem<K, V> ** hm, std::size_t mSize) {
- // delete all nodes
- for (std::size_t i = 0; i < mSize; ++i) {
- HashItem<K, V> * item = hm[i];
- while (item != nullptr) {
- HashItem<K, V> * prev = item;
- item = item->getNext();
- delete prev;
- }
- hm[i] = nullptr;
- }
- // delete the map
- delete[] hm;
- }
-
- /*
- * help function for deleting the map hm
- * @hm HashMap
- * @mSize number of buckets in hm
- */
- void deleteMapDeep(HashItem<K, V> ** hm, std::size_t mSize) {
- // delete all nodes
- for (std::size_t i = 0; i < mSize; ++i) {
- HashItem<K, V> * item = hm[i];
- while (item != nullptr) {
- HashItem<K, V> * prev = item;
- item = item->getNext();
- delete prev->getValue();
- delete prev;
- }
- hm[i] = nullptr;
- }
- // delete the map
- delete[] hm;
- }
-
-
+ // delete the map
+ delete[] hm;
+ }
};
#endif /* HASHMAP_H */
-
-
-
-
diff --git a/SVIncCompil/Utils/ParseUtils.h b/SVIncCompil/Utils/ParseUtils.h
index 8719efe..6edaee9 100644
--- a/SVIncCompil/Utils/ParseUtils.h
+++ b/SVIncCompil/Utils/ParseUtils.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: ParseUtils.h
* Author: alain
*
@@ -27,30 +27,29 @@
namespace SURELOG {
class ParseUtils {
-public :
- static std::pair<int,int> getLineColumn(CommonTokenStream* stream, ParserRuleContext* context);
-
- static std::pair<int,int> getLineColumn(tree::TerminalNode* node);
-
- static std::vector<tree::ParseTree*> getTopTokenList (tree::ParseTree* tree);
- static void tokenizeAtComma(std::vector<std::string>& actualArgs, const std::vector<tree::ParseTree*>& tokens);
-
- static std::vector<Token*> getFlatTokenList (tree::ParseTree* tree);
-
- static void inOrderTraversal (std::vector<Token*>& tokens, tree::ParseTree* parent);
-
-private:
- ParseUtils();
- ParseUtils(const ParseUtils& orig);
- virtual ~ParseUtils();
-private:
+ public:
+ static std::pair<int, int> getLineColumn(CommonTokenStream* stream,
+ ParserRuleContext* context);
+ static std::pair<int, int> getLineColumn(tree::TerminalNode* node);
+
+ static std::vector<tree::ParseTree*> getTopTokenList(tree::ParseTree* tree);
+ static void tokenizeAtComma(std::vector<std::string>& actualArgs,
+ const std::vector<tree::ParseTree*>& tokens);
+
+ static std::vector<Token*> getFlatTokenList(tree::ParseTree* tree);
+
+ static void inOrderTraversal(std::vector<Token*>& tokens,
+ tree::ParseTree* parent);
+
+ private:
+ ParseUtils();
+ ParseUtils(const ParseUtils& orig);
+ virtual ~ParseUtils();
+
+ private:
};
-};
+}; // namespace SURELOG
#endif /* PARSEUTILS_H */
-
-
-
-
diff --git a/SVIncCompil/Utils/StringUtils.h b/SVIncCompil/Utils/StringUtils.h
index e914ec2..6e99e41 100644
--- a/SVIncCompil/Utils/StringUtils.h
+++ b/SVIncCompil/Utils/StringUtils.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: StringUtils.h
* Author: alain
*
@@ -29,42 +29,45 @@
namespace SURELOG {
class StringUtils {
-public:
- static void tokenize(std::string str, std::string separators, std::vector<std::string>& args);
- static void tokenizeMulti(std::string str, std::string multichar_separator, std::vector<std::string>& args);
- static void tokenizeBalanced(std::string str, std::string separator, std::vector<std::string>& args);
- static void replaceInTokenVector(std::vector<std::string>& tokens, std::vector<std::string> pattern, std::string news);
- static void replaceInTokenVector(std::vector<std::string>& tokens, std::string pattern, std::string news);
- static std::string getFirstNonEmptyToken(std::vector<std::string>& tokens);
-
- static std::string & trim(std::string & str);
- static std::string & ltrim(std::string & str);
- static std::string & ltrim(std::string & str, char c);
- static bool ltrimStat(std::string & str, char c);
- static std::string & rtrim(std::string & str);
- static std::string & rtrimEqual(std::string & str);
- static std::string & rtrim(std::string & str, char c);
- static std::string leaf(std::string str);
-
- static std::string & getRootFileName(std::string & str);
- static std::string eliminateRelativePath(std::string path);
- static std::string replaceAll(std::string str, const std::string& from, const std::string& to);
- static std::string getLineInString(std::string& bulk, unsigned int line);
-
- static std::string to_string(double a_value, const int n = 3);
-
-private:
- StringUtils();
- StringUtils(const StringUtils& orig);
- virtual ~StringUtils();
-private:
+ public:
+ static void tokenize(std::string str, std::string separators,
+ std::vector<std::string>& args);
+ static void tokenizeMulti(std::string str, std::string multichar_separator,
+ std::vector<std::string>& args);
+ static void tokenizeBalanced(std::string str, std::string separator,
+ std::vector<std::string>& args);
+ static void replaceInTokenVector(std::vector<std::string>& tokens,
+ std::vector<std::string> pattern,
+ std::string news);
+ static void replaceInTokenVector(std::vector<std::string>& tokens,
+ std::string pattern, std::string news);
+ static std::string getFirstNonEmptyToken(std::vector<std::string>& tokens);
+ static std::string& trim(std::string& str);
+ static std::string& ltrim(std::string& str);
+ static std::string& ltrim(std::string& str, char c);
+ static bool ltrimStat(std::string& str, char c);
+ static std::string& rtrim(std::string& str);
+ static std::string& rtrimEqual(std::string& str);
+ static std::string& rtrim(std::string& str, char c);
+ static std::string leaf(std::string str);
+
+ static std::string& getRootFileName(std::string& str);
+ static std::string eliminateRelativePath(std::string path);
+ static std::string replaceAll(std::string str, const std::string& from,
+ const std::string& to);
+ static std::string getLineInString(std::string& bulk, unsigned int line);
+
+ static std::string to_string(double a_value, const int n = 3);
+
+ private:
+ StringUtils();
+ StringUtils(const StringUtils& orig);
+ virtual ~StringUtils();
+
+ private:
};
-};
+}; // namespace SURELOG
#endif /* STRINGUTILS_H */
-
-
-
-
diff --git a/SVIncCompil/Utils/Timer.h b/SVIncCompil/Utils/Timer.h
index bd0a3af..6ac1dd9 100644
--- a/SVIncCompil/Utils/Timer.h
+++ b/SVIncCompil/Utils/Timer.h
@@ -1,12 +1,12 @@
/*
Copyright 2019 Alain Dargelas
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
limitations under the License.
*/
-/*
+/*
* File: Timer.h
* Author: alain
*
@@ -29,42 +29,33 @@
namespace SURELOG {
- class Timer {
- public:
+class Timer {
+ public:
+ Timer() : beg_(clock_::now()) {}
- Timer() : beg_(clock_::now()) {
- }
+ void reset() { beg_ = clock_::now(); }
- void reset() {
- beg_ = clock_::now();
- }
+ double elapsed() const {
+ return std::chrono::duration_cast<second_>(clock_::now() - beg_).count();
+ }
- double elapsed() const {
- return std::chrono::duration_cast<second_>
- (clock_::now() - beg_).count();
- }
-
- double elapsed_rounded() const {
- double res = std::chrono::duration_cast<second_>
- (clock_::now() - beg_).count();
- return round(res);
- }
+ double elapsed_rounded() const {
+ double res =
+ std::chrono::duration_cast<second_>(clock_::now() - beg_).count();
+ return round(res);
+ }
- double round(double f) const {
- return floor(f * 500 + 0.5) / 500;
- // return std::round(f * 5) / 5; // C++11
- }
+ double round(double f) const {
+ return floor(f * 500 + 0.5) / 500;
+ // return std::round(f * 5) / 5; // C++11
+ }
- private:
- typedef std::chrono::high_resolution_clock clock_;
- typedef std::chrono::duration<double, std::ratio<1> > second_;
- std::chrono::time_point<clock_> beg_;
- };
-
+ private:
+ typedef std::chrono::high_resolution_clock clock_;
+ typedef std::chrono::duration<double, std::ratio<1> > second_;
+ std::chrono::time_point<clock_> beg_;
};
+}; // namespace SURELOG
+
#endif /* TIMER_H */
-
-
-
-