[Fwd: Question of `undef]

From: Shalom Bresticker (r50386@email.sps.mot.com)
Date: Tue Nov 09 1999 - 00:59:13 PST


<x-html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
I found the following old mail.
<BR>What is the correct answer ?

Shalom
<PRE>--

************************************************************************
Shalom Bresticker email: shalom@msil.sps.mot.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522444
<A HREF="http://www.motorola-semi.co.il/"><a href="http://www.motorola-semi.co.il/">http://www.motorola-semi.co.il/>>
************************************************************************</PRE>
 </HTML>

</x-html>
Message-ID: <md5:22D8530FCAD0E7638D7065344245E450>
Newsgroups: comp.lang.verilog
Subject: Question of `undef
X-Lines: 32

<p>To Verilog Expert

I get a question of `undef directive in IEEE 1364.

In LRM 16.3.2 (page 222), the syntax of `undef is

  undefine_compiler_directive ::= `undef text_macro_name

  text_macro_name ::= identify [ ( list_of_formal_arguments ) ]

My question is :

  Is the following verilog code legal ?

<p> `define max(a,b) ((a) > (b))? (a) : (b)

  `undef max(a,b)

or only use "`undef max"

Any answer will be appreciate. Thanks.

<p>

-- 

---- Ta-Yung Liu



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:53:31 PDT and
sponsored by Boyd Technology, Inc.