who can tell me "$sign" system task ?

Status
Not open for further replies.

feel_on_on

Full Member level 5
Joined
Apr 29, 2005
Messages
283
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,298
Activity points
3,208
what's it's meaning ?

$sign(x) ,unsign(x).

I never have found the system task in my verilog book.

Is it a newer IEEE verilog standard syntax?
 

verilog 2001.

for example, if you have a 4 bit value, lt's say, x=1111 (in binary)
if you use $signed(x), it will be -1
if you use $unsigned(x), it will be f in hex (15 in decimal)
 

Thanks ,where can I find a IEEE verilog 2001 standard?
 

Wanna add something, these two tasks are synthesizable and very handy to use especially when u design DSP
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…