-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced no-name parameters in common log interface with VUnit-specif…
…ic parameters.
- Loading branch information
1 parent
e24d818
commit 7293498
Showing
9 changed files
with
175 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
examples/vhdl/osvvm_log_integration/osvvm_integration/osvvm_to_vunit_common_log_pkg.vhd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
-- This Source Code Form is subject to the terms of the Mozilla Public | ||
-- License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
-- You can obtain one at http://mozilla.org/MPL/2.0/. | ||
-- | ||
-- Copyright (c) 2014-2023, Lars Asplund lars.anders.asplund@gmail.com | ||
|
||
use std.textio.all; | ||
|
||
package common_log_pkg is | ||
-- Deferred constant set to true in the native implementation of the package. | ||
-- Must be set to false in alternative implementations. | ||
constant is_original_pkg : boolean; | ||
|
||
-- Default interface values. | ||
constant no_time : time := -1 ns; | ||
constant no_string : string := ""; | ||
|
||
-- Converts a log message and associated metadata to a string written to the specified log destination. | ||
procedure write_to_log( | ||
---------------------------------------------------------------------- | ||
-- Log entry items mandatory for all implementations of this interface | ||
---------------------------------------------------------------------- | ||
|
||
-- Destination of the log message is either std.textio.output (std output) or a text file object previously opened | ||
-- for writing | ||
file log_destination : text; | ||
-- Path to log_destination if it's a file, empty string otherwise | ||
log_destination_path : string := no_string; | ||
-- Log message | ||
msg : string := no_string; | ||
-- Simulation time associated with the log message | ||
log_time : time := no_time; | ||
-- Level associated with the log message. For example "DEBUG" or "WARNING". | ||
log_level : string := no_string; | ||
-- Name of the producer of the log message. Hierarchical names use colon as the delimiter. | ||
-- For example "parent_component:child_component". | ||
log_source_name : string := no_string | ||
); | ||
end package; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.