[libre-riscv-dev] simulator get time API

Jacob Lifshay programmerjake at gmail.com
Sun Jul 26 06:13:19 BST 2020


# XXX sim._state is an internal variable
# and timeline does not exist
# AttributeError: '_SimulatorState' object
#                 has no attribute 'timeline'
# TODO: raise bugreport with whitequark
# requesting a public API to access this "officially"
# XXX print("time:", sim._state.timeline.now)

Feature request already submitted:
https://github.com/nmigen/nmigen/issues/443

Jacob


More information about the libre-riscv-dev mailing list