FW: [sv-bc] sign/width casting semantics

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Fri Feb 01 2008 - 00:57:11 PST
 

-----Original Message-----
From: Bresticker, Shalom 
Sent: Friday, February 01, 2008 10:08 AM
To: 'Greg Jaxon'; 'sv-bc'
Subject: RE: [sv-bc] sign/width casting semantics

type(N)'(N+1) ?

See 6.23.

Shalom 

> -----Original Message-----
> From: owner-sv-bc@server.eda.org
> [mailto:owner-sv-bc@server.eda.org] On Behalf Of Greg Jaxon
> Sent: Wednesday, January 30, 2008 9:10 PM
> To: 'sv-bc'
> Subject: Re: [sv-bc] sign/width casting semantics
> 
> Here's a puzzle:  write a macro that increments the value of its 
> packed vector expression argument without changing the type of that 
> expression in any way.
> 
> .
> 
> .
> 
> .
> 
> 
> .
> 
> 
> 
> .
> 
> 
> 
> 
> .
> 
> 
> 
> 
> .
> 
> 
> 
> `define INCR(N) ((N) + signed'(1'b1))
> 
> This is the thing that Shalom thinks should not work.
> It is an expression I have needed again and again in Verilog.
> If you can write it for me some better way, I will concede this whole 
> point.
> 
> Greg
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean.
> 
> 
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Feb 1 01:14:24 2008

This archive was generated by hypermail 2.1.8 : Fri Feb 01 2008 - 01:18:26 PST