UCSBarchlab / PyRTL

A collection of classes providing simple hardware specification, simulation, tracing, and testing suitable for teaching and research. Simplicity, usability, clarity, and extensibility are the overarching goals, rather than performance or optimization.
http://ucsbarchlab.github.io/PyRTL
BSD 3-Clause "New" or "Revised" License
253 stars 76 forks source link

Support newer Python graphviz module #416

Closed ryoon closed 2 years ago

ryoon commented 2 years ago

Python graphviz 0.19 or later has _repr_image_svg_xml() instead of _reprsvg(). Fix runtime error from output_to_svg() and block_to_svg().

mdko commented 2 years ago

Great, thanks!

codecov-commenter commented 2 years ago

Codecov Report

Merging #416 (e11f2b6) into development (7c2c8be) will decrease coverage by 0.07%. The diff coverage is 0.00%.

@@               Coverage Diff               @@
##           development     #416      +/-   ##
===============================================
- Coverage        90.51%   90.44%   -0.08%     
===============================================
  Files               24       24              
  Lines             6063     6068       +5     
===============================================
  Hits              5488     5488              
- Misses             575      580       +5     
Impacted Files Coverage Δ
pyrtl/visualization.py 86.25% <0.00%> (-1.84%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7c2c8be...e11f2b6. Read the comment docs.