View Single Post
  #2 (permalink)  
Old 03-29-2009, 06:14 AM
pallav
Guest
 
Posts: n/a
Default Hex start address in $readmemh?

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.
Reply With Quote