0% found this document useful (0 votes)
40 views

CGPT Filter

The document declares three signed wires: a 4-bit wire named a, and two 3-bit wires named b and c. It then performs a signed subtraction operation on a, assigning the result of subtracting the signed values of b and c to a.

Uploaded by

Roshan Raju
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

CGPT Filter

The document declares three signed wires: a 4-bit wire named a, and two 3-bit wires named b and c. It then performs a signed subtraction operation on a, assigning the result of subtracting the signed values of b and c to a.

Uploaded by

Roshan Raju
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

wire signed [4:0] a;

wire signed [3:0] b;


wire signed [3:0] c;

assign a = $signed({b[3],b}) - $signed({c[3],c}); //Signed subtraction operation

wire signed [3:0] b;


$signed({{1{b[3]}},b[3:1]})

You might also like