J
Jonathan Bromley
Guest
Back in August '08 there was an inconclusive thread here
asking whether you could find a VHDL lookalike for the
very convenient Verilog readmemb/readmemh system tasks.
It's something I have often wanted for myself, to
support testbenches written in a mixture of VHDL and
Verilog - or when translating from one to another.
I don't want to have to rewrite all my memory image
files into some VHDL-friendly format.
I've now done a reasonably complete implementation of
readmemb/readmemh in VHDL, and will make it available
after a bit more testing. However, it seems likely
that the ability to read .COE and .MIF would also be
handy (nice to use the same memory image files for
behavioural models and synthesis); and perhaps
Intel HEX or S-record as well. Which of these do
folk think is most important? I don't have time
to do a thorough job on all of them. It's easy
and quick to do something that's *almost* right
but, like most things in life, doing it properly
costs real work.
Alternatively, has anyone stumbled across any
existing implementations of file-readers for those
formats in VHDL? I couldn't find anything after
a brief Google session.
TIA
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
asking whether you could find a VHDL lookalike for the
very convenient Verilog readmemb/readmemh system tasks.
It's something I have often wanted for myself, to
support testbenches written in a mixture of VHDL and
Verilog - or when translating from one to another.
I don't want to have to rewrite all my memory image
files into some VHDL-friendly format.
I've now done a reasonably complete implementation of
readmemb/readmemh in VHDL, and will make it available
after a bit more testing. However, it seems likely
that the ability to read .COE and .MIF would also be
handy (nice to use the same memory image files for
behavioural models and synthesis); and perhaps
Intel HEX or S-record as well. Which of these do
folk think is most important? I don't have time
to do a thorough job on all of them. It's easy
and quick to do something that's *almost* right
but, like most things in life, doing it properly
costs real work.
Alternatively, has anyone stumbled across any
existing implementations of file-readers for those
formats in VHDL? I couldn't find anything after
a brief Google session.
TIA
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.