Re: [sv-ec] Re: [sv-bc] Re: Post 3.1


Subject: Re: [sv-ec] Re: [sv-bc] Re: Post 3.1
From: Jonathan Bradford;Freiburg (bradford@micronas.com)
Date: Fri May 09 2003 - 03:19:58 PDT


What about defining pragmas for backward compatability that apply over
files / modules ?
Then the syntax would be aware whether `bit', 'logic' etc were keywords
or variables
from 'older' code ?

`verilog1995
`verilog2000

even for those stirring mixed signal flavours

`verilogams

These pragmas could also have meaning on the command line arguments
for multi-pass compile/elaborate/sim invocations, but then they only
apply to files,
not individual modules and are of less help to the single pass sim
invocations using -y
scanning options etc.

Just a simple suggestion.

          Jonathan Bradford

Kevin Cameron x3251 wrote:

> I previously posted suggesting that we could reduce the size of the
> language and get better backward compatibility by reimplementing stuff
> as typedefs in standard header files. It occured to me that you could
> also do it by using pre-defined typedefs if you add an "untypedef"
> capability. E.g. if you have bit & logic predefined (as per previous
> discussion with Cliff) -
>
> typedef unresolved_bit bit;
> typedef resolved_bit logic;
>
> - then you could do something like:
>
> untypedef bit;
> untypedef logic;
> `include "my_old_verilog.v" // old code using "bit" or "logic"
>
> You could consider "byte","short" & "int" as being:
>
> typedef signed unresolved_bit [7:0] byte;
> typedef signed unresolved_bit [15:0] short;
> typedef signed unresolved_bit [31:0] int;
>
> Just a thought,
> Kev.
> ----
> National Semiconductor, Tel: (408) 721 3251
> 2900 Semiconductor Drive, Mail Stop D3-500, Santa Clara, CA 95052-8090

--

________________________________________________________________________________

/\ Jonathan Bradford mailto:bradford@micronas.com \/ /\/\ MICRONAS GmbH http://www.micronas.com /\/\/\ \/\/\/ Hans-Bunte-Str.19 Tel: +49 (0)761 517 2884 \/\/ D-79108 Freiburg Fax: +49 (0)761 517 2880 \/ Germany



This archive was generated by hypermail 2b28 : Fri May 09 2003 - 03:23:35 PDT