[an error occurred while processing this directive]
|
reg and net data types can be declared as signed
reg
reg signed [63:0] data;
signed [63:0] data;
wire signed [11:0] address;
wire signed [11:0] address;
Function returns can be declared as signed
function signed [128:0] alu;
function signed [128:0] alu;
Literal integer numbers can be declared as signed
16'shC501
16'shC501 //a signed 16-bit hex value
//a signed 16-bit hex value
New arithmetic shift operators, <<< and >>>,
maintain the sign of a value
New $signed() and $unsigned() system functions
can "cast" a value to signed or unsigned
E-mail: info@telesys.ru