View Single Post
  #4 (permalink)  
Old 12-17-2007, 11:08 PM
Kevin Neilson
Guest
 
Posts: n/a
Default Re: Passing verilog Input File as a command line define

Kevin Neilson wrote:

>
> > $readmemb({INPUT_FILE,"00",4,INPUT_SUFFIX}, config_array);

>



By the way, I made a mistake above by not treating the number 4 as a
string. What I meant was

> $readmemb({INPUT_FILE,"00",(8'd4+8'h30),INPUT_SUFF IX}, config_array);



Adding 8'h30 to a decimal digit converts it to the proper ASCII code.
-Kevin
Reply With Quote