Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hex start address in $readmemh?

876 views
Skip to first unread message

pallav

unread,
Mar 29, 2009, 1:14:05 AM3/29/09
to
Hi,

I declare some memory as follows: reg[31:0] DRAM[8191:0];

I want to initialize it with some data from a file using $readmemh.
However, how does one specify the start address in hexadecimal format?
Currently, I have,

$readmemh("../tests/mult.bin", DRAM, 100);

But 100 is decimal. I would like to start at 0x100. I've tried h'100
and 100h but I'm getting syntax errors. Thanks.

Muzaffer Kal

unread,
Mar 28, 2009, 1:30:04 AM3/28/09
to

Try 'h100.
--
Muzaffer Kal

DSPIA INC.
ASIC/FPGA Design Services
http://www.dspia.com

0 new messages