TYPE overloading?

From: Thomas Lang (lang_at_itp.tugraz.at)
Date: 03/30/05


Date: Wed, 30 Mar 2005 12:33:02 +0200

hi all,

one and the same code can run with COMPLEX or REAL type - depending on
what type of simulation I need. So far, one can switch between these two
versions with the help of a sed-script which simply exchanges all
declarations.

What I want now, is to get rid of the sed-script and to simply change a
type definition in a module to switch from one type to the other.

Functions can be handled via interfaces (wrappers). In principle I guess
I could change all definitions to a new type but I would have to adapt
all assignments of variables too. Is there a way to avoid the '%' in
type definitions, or to overload an intrinsic type?

br,
Tom



Relevant Pages

  • Re: Is the spectreVerilog simulator much faster with IC/5.1.41_usr2 than with IC/5.0.33 ?
    ... >> try setting fastcross=no on the transient options, see if that makes it slower ... >Originally I ran my simulation from Analog Artist GUI. ... >find a switch fastcross. ... There's not a huge amount about it in the documentation as I mentioned. ...
    (comp.cad.cadence)
  • Re: Picoblaze, UART: need help!!
    ... IF i lock one switch to Clock and then toggle it's not working and i think it won't. ... Get a simpler circuit thant a Viterby decoder. ... Get a feeling for simulation and testing in hardware, understand the difference and the idea behind the different ways of testing. ...
    (comp.arch.fpga)
  • Re: Two envelopes and game theory
    ... >> So your calculations seem incomplete and almost certainly wrong. ... Bill's simulation is flawed. ... you should always switch when the first envelope has a "1". ... > /* pairis the distribution of envelope pairs ...
    (sci.math)
  • Re: Is the spectreVerilog simulator much faster with IC/5.1.41_usr2 than with IC/5.0.33 ?
    ... I tried to rerun the simulation using ... find a switch fastcross. ... How can I check whether this switch was passed correctly to the spectre ...
    (comp.cad.cadence)