Re: Why is type for string parameters mandatory?

From: Geoffrey.Coram <Geoffrey.Coram_at_.....>
Date: Wed Nov 15 2006 - 06:15:05 PST
Hmm.

I assume then, that if you declared myParam as:
  parameter real myParam = 1.0;

and then overrode the value in a module instantiation
  myMod #(.myParam("abc")) myInst;

that this value "abc" would be coerced to real, and
there would be no warning or error?

There was a mantis item
  http://www.eda-stds.org/mantis/bug_view_page.php?bug_id=0000824
that might need to be reopened.

-Geoffrey



"Bresticker, Shalom" wrote:
> 
> In 1364, this works. It defines myParam as a 24-bit vector.
> 
> Shalom
> 
> > However i someone does
> >
> > parameter myParam = "abc";
> >
> > whether this would be treated as integer and what the value of the
> > integer would be. I need to check this by running on the simulator.
Received on Wed Nov 15 06:15:15 2006

This archive was generated by hypermail 2.1.8 : Wed Nov 15 2006 - 06:15:23 PST