mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 05:13:40 +00:00
Added new_dict (hashmap.h) and re-enabled code coverage counters
This commit is contained in:
parent
e0c0011863
commit
e52d1f9b9a
6 changed files with 246 additions and 7 deletions
|
@ -106,10 +106,10 @@ struct CoverData {
|
|||
extern "C" struct CoverData __start_yosys_cover_list[];
|
||||
extern "C" struct CoverData __stop_yosys_cover_list[];
|
||||
|
||||
extern std::map<std::string, std::pair<std::string, int>> extra_coverage_data;
|
||||
extern new_dict<std::string, std::pair<std::string, int>> extra_coverage_data;
|
||||
|
||||
void cover_extra(std::string parent, std::string id, bool increment = true);
|
||||
std::map<std::string, std::pair<std::string, int>> get_coverage_data();
|
||||
new_dict<std::string, std::pair<std::string, int>> get_coverage_data();
|
||||
|
||||
#define cover_list(_id, ...) do { cover(_id); \
|
||||
std::string r = cover_list_worker(_id, __VA_ARGS__); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue