# How to use string as event or as time?

**URL:** <https://verificationacademy.com/forums/t/how-to-use-string-as-event-or-as-time/33271>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, pass-signal\
**Created:** [July 4, 2017, 12:26pm UTC](https://verificationacademy.com/forums/t/how-to-use-string-as-event-or-as-time/33271 "2017-07-04T12:26:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [July 4, 2017, 2:59pm UTC](https://verificationacademy.com/forums/t/how-to-use-string-as-event-or-as-time/33271/2 "2017-07-04T14:59:22Z")

</div>

_In reply to [saritr](https://verificationacademy.com/forums/t/how-to-use-string-as-event-or-as-time/33271):_  
You would be better off trying to convert the text file of transactions you are reading directly to SystemVerilog. Or if you have a limited number of events, encoding them into sothing you can branch into a case statement might be feasible.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-use-string-as-event-or-as-time/33271)._
