mciepluc / cocotb-coverage

Functional Coverage and Constrained Randomization Extensions for Cocotb
BSD 2-Clause "Simplified" License
100 stars 15 forks source link

Error in merging two or more files #31

Closed Losiek closed 4 years ago

Losiek commented 4 years ago

Following error is occurs when merging two or more files with function cov.merge_coverage(print, "cov.xml", "cov_1.xml", "cov_2.xml")

Error:

~/.conda/envs/p_env/lib/python3.7/site-packages/cocotb_coverage/coverage.py in merge_element(db) 1082 parent_hits_threshold = int( 1083 name_to_elem[parent_name].attrib['at_least']) -> 1084 if (hits_orig < parent_hits_threshold 1085 and hits_orig+hits >= parent_hits_threshold): 1086 update_parent(name=abs_name, bin_update=True, UnboundLocalError: local variable 'hits_orig' referenced before assignment

mciepluc commented 4 years ago

@Losiek please confirm it's fixed and close

Losiek commented 4 years ago

Works, thanks.