Skip to content

Commit

Permalink
print out output info
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Jul 26, 2018
1 parent a1b9cc9 commit ce618fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fault/verilator_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def to_string(t):
not isinstance(port.T, m._BitType):
for _name in flattened_names(port):
output_str += f'''\
std::cout << "top->{name} = " << test[{i}].value << ", ";
check(\"{name}{_name}\", top->{name}{_name}, test[{i}], i);
'''
i += 1
Expand All @@ -140,6 +141,7 @@ def to_string(t):
source += f'''\
std::cout << std::endl;
{output_str}
std::cout << std::endl;
top->eval();
'''
source += '''\
Expand Down

0 comments on commit ce618fd

Please sign in to comment.