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

From: Greg Jaxon <Greg.Jaxon_at_.....>
Date: Wed Jan 30 2008 - 11:10:26 PST
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.
Received on Wed Jan 30 11:10:49 2008

This archive was generated by hypermail 2.1.8 : Wed Jan 30 2008 - 11:11:20 PST