Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
* [libre-riscv-dev] simulator get time API
@ 2020-07-26  5:13 Jacob Lifshay
  2020-07-26  8:30 ` Luke Kenneth Casson Leighton
  0 siblings, 1 reply; 2+ messages in thread
From: Jacob Lifshay @ 2020-07-26  5:13 UTC (permalink / raw)
  To: Libre-RISCV General Development

# 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
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [libre-riscv-dev] simulator get time API
  2020-07-26  5:13 [libre-riscv-dev] simulator get time API Jacob Lifshay
@ 2020-07-26  8:30 ` Luke Kenneth Casson Leighton
  0 siblings, 0 replies; 2+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-07-26  8:30 UTC (permalink / raw)
  To: Libre-RISCV General Development

On Sun, Jul 26, 2020 at 6:13 AM Jacob Lifshay <programmerjake@gmail.com> wrote:

> # 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

fantastic.

_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-26  5:13 [libre-riscv-dev] simulator get time API Jacob Lifshay
2020-07-26  8:30 ` Luke Kenneth Casson Leighton

Libre RISC-V Mailing list Archives (accessible via public-inbox)

Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev

Example config snippet for mirrors


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git