# \#filewrite

**URL:** https://verificationacademy.com/forums/tag/filewrite/6974.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [File operations](https://verificationacademy.com/forums/t/file-operations/42380)

<div class="topic-metadata">

**Author:** [@ShaikhAbuzar](https://verificationacademy.com/forums/u/ShaikhAbuzar)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 3:37pm UTC](https://verificationacademy.com/forums/t/file-operations/42380 "2023-09-11T15:37:10Z")

</div>

I have many variables with the following naming conventions. int mem\_0\_0 = 5; int mem\_0\_1 = 10; and so on… this is just an example, you might suggest me to use arrays instead of declaring these variables. but my pro…

---

## [Level Triggering](https://verificationacademy.com/forums/t/level-triggering/37770)

<div class="topic-metadata">

**Author:** [@nimesh13](https://verificationacademy.com/forums/u/nimesh13)\
**Replies:** 1\
**Last updated:** [June 26, 2020, 7:23pm UTC](https://verificationacademy.com/forums/t/level-triggering/37770 "2020-06-26T19:23:09Z")

</div>

I wish to know how can level triggering be done in Verilog. I am writing contents to a file and I wish to write at Level-Triggering of the clock but I am unable to implement the level triggering. I thought of the followi…

---

## [Output to a Text file](https://verificationacademy.com/forums/t/output-to-a-text-file/37668)

<div class="topic-metadata">

**Author:** [@nimesh13](https://verificationacademy.com/forums/u/nimesh13)\
**Replies:** 2\
**Last updated:** [June 4, 2020, 8:52pm UTC](https://verificationacademy.com/forums/t/output-to-a-text-file/37668 "2020-06-04T20:52:56Z")

</div>

I am trying to write a module that writes the values of all the signals into a text file. A value should be written at every positive edge of the clock. Now File cannot be opened without an initial statement and always b…

---

## [Redirect output messages to different files in UVM](https://verificationacademy.com/forums/t/redirect-output-messages-to-different-files-in-uvm/37523)

<div class="topic-metadata">

**Author:** [@rgarcia07](https://verificationacademy.com/forums/u/rgarcia07)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 9:49am UTC](https://verificationacademy.com/forums/t/redirect-output-messages-to-different-files-in-uvm/37523 "2020-05-02T09:49:59Z")

</div>

Hello, I have a class extending from uvm\_reg\_cbs (not a component) which creates some messages that need to be redirected and formatted to different file, I know that I could use $fopen, $fwrite\*\* to achieve this but I …

---

## [File writing](https://verificationacademy.com/forums/t/file-writing/36231)

<div class="topic-metadata">

**Author:** [@avinash\_nambiar](https://verificationacademy.com/forums/u/avinash_nambiar)\
**Replies:** 5\
**Last updated:** [June 28, 2019, 3:49pm UTC](https://verificationacademy.com/forums/t/file-writing/36231 "2019-06-28T15:49:54Z")

</div>

I have a module that writes two hexadecimal values to a text file say “abc.txt”. I am using the $fdisplay(edit 1: tried $fwrite as well) construct in SV and have two print statements for debugging above and below the $fd…
