Guest
I am looking for the easiest way possible to read a text file into
SystemVerilog.
First, a little background:
I have six years of experience with VHDL, which I used to use to make
command-driven testbenches. I could write testbenches that looked
like this:
RESET 10
IDLE 12
WRITE ABCD1234 DEADBEEF
IDLE 6
READ 1234ABCD FEEDFEED
etc. etc. etc.
I would now like to do the same thing in Verilog and/or SystemVerilog,
but cannot find an easy way to read and parse a simple text file. So
far, the ONLY thing that I have found is: http://www.chris.spear.net/pli/fileio.htm
which uses PLI (which seems like a bit of a hack). I would prefer
something built-in to the language itself.
And, of course, if VHDL can do it, then Verilog must be at least as
good, right
I have done pretty well at learning Verilog, so my next hurdle is to
learn SystemVerilog, get into assertions, formal verification, etc.
(nothing like a drink from the firehose)
SystemVerilog.
First, a little background:
I have six years of experience with VHDL, which I used to use to make
command-driven testbenches. I could write testbenches that looked
like this:
RESET 10
IDLE 12
WRITE ABCD1234 DEADBEEF
IDLE 6
READ 1234ABCD FEEDFEED
etc. etc. etc.
I would now like to do the same thing in Verilog and/or SystemVerilog,
but cannot find an easy way to read and parse a simple text file. So
far, the ONLY thing that I have found is: http://www.chris.spear.net/pli/fileio.htm
which uses PLI (which seems like a bit of a hack). I would prefer
something built-in to the language itself.
And, of course, if VHDL can do it, then Verilog must be at least as
good, right
I have done pretty well at learning Verilog, so my next hurdle is to
learn SystemVerilog, get into assertions, formal verification, etc.
(nothing like a drink from the firehose)