Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This is the list of Abseil authors for copyright purposes.
# This is the official list of authors and contributors for libfstwriter.
#
# This does not necessarily list everyone who has contributed code, since in
# some cases, their employer may be the copyright holder. To see the full list
# of contributors, see the revision history in source control.
# To see the full list of contributors and their exact contributions,
# please refer to the revision history in source control (e.g., git log).
#
# Format: Name <Email> (optional)

Yu-Sheng Lin
You-Tang Lee
Yu-Sheng Lin <johnjohnlys@gmail.com>
Yoda Lee <lc85301@gmail.com>
rfuest
4 changes: 4 additions & 0 deletions fstcpp/fstcpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ static inline string_view_pair make_string_view_pair(const char *data) {
}
return {data, std::strlen(data)};
}

[[maybe_unused]]
static inline string_view_pair make_string_view_pair(const char *data, std::size_t size) {
return {data, size};
Expand All @@ -57,10 +58,12 @@ enum class EncodingType : uint8_t {
VERILOG = 1, // 2 bits per bit to represent X,Z
VHDL = 2, // 4 bits per bit to represent H,U,W,L,-,?
};

[[maybe_unused]]
static inline constexpr unsigned bitPerEncodedBit(EncodingType type) {
return 1 << static_cast<uint8_t>(type);
}

[[maybe_unused]]
static const char* kEncodedBitToCharTable = (
"01" // Binary
Expand Down Expand Up @@ -92,6 +95,7 @@ struct Hierarchy {
VHDL_IFGENERATE = 19,
VHDL_GENERATE = 20,
VHDL_PACKAGE = 21,
SV_ARRAY = 22,
};

enum class ScopeControlType : uint8_t {
Expand Down
Loading