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
254 stars 76 forks source link

More tests, documentation for bitfield_update (incl. set) #387

Closed mdko closed 3 years ago

mdko commented 3 years ago

As I was using bitfield_update, I noticed an incorrect example in the documentation. This PR fixes it, adds more documented examples, and adds more unit tests for bitfield_update and bitfield_update_set.