System Verilog final block limitations

U

unfrostedpoptart

Guest
Hi all.

I've been using final blocks to print diagnostics at the end of my simulations. However, I'm stuck trying to have several different modules print at the end of the test since I can't trigger them in a specified order since final blocks don't allow any timing control and must execute in zero time.

Any ideas or workarounds for this?

Thanks!

David
 
unfrostedpoptart wrote:
Hi all.

I've been using final blocks to print diagnostics at the end of my simulations. However, I'm stuck trying to have several different modules print at the end of the test since I can't trigger them in a specified order since final blocks don't allow any timing control and must execute in zero time.

Any ideas or workarounds for this?

Thanks!

David
Are you saying that some blocks never get executed or just that the
prints get jumbled because they happen together? If it's the latter
you could print your diagnostics to files (one per block) and merge
the files in any order you like afterwards.

-- Gabor
 
On Tuesday, February 19, 2013 11:19:38 AM UTC-8, gabor wrote:
unfrostedpoptart wrote:

Hi all.



I've been using final blocks to print diagnostics at the end of my simulations. However, I'm stuck trying to have several different modules print at the end of the test since I can't trigger them in a specified order since final blocks don't allow any timing control and must execute in zero time.



Any ideas or workarounds for this?



Thanks!



David



Are you saying that some blocks never get executed or just that the prints get jumbled because they happen together? If it's the latter you could print your diagnostics to files (one per block) and merge the files in any order you like afterwards.
The latter. I've already implemented it as multiple files like you suggest but I was trying to avoid lots of little files. Oh well.

Thanks,

David
 
On Tuesday, February 19, 2013 12:02:36 PM UTC-8, unfrostedpoptart wrote:
On Tuesday, February 19, 2013 11:19:38 AM UTC-8, gabor wrote:

unfrostedpoptart wrote:



Hi all.







I've been using final blocks to print diagnostics at the end of my simulations. However, I'm stuck trying to have several different modules print at the end of the test since I can't trigger them in a specified order since final blocks don't allow any timing control and must execute in zero time.







Any ideas or workarounds for this?







Thanks!







David







Are you saying that some blocks never get executed or just that the prints get jumbled because they happen together? If it's the latter you could print your diagnostics to files (one per block) and merge the files in any order you like afterwards.



The latter. I've already implemented it as multiple files like you suggest but I was trying to avoid lots of little files. Oh well.



Thanks,



David
Can you have one final block that calls (using full pathnames) functions with contents that you would have put in individual final blocks?
 

Welcome to EDABoard.com

Sponsor

Back
Top