I recently came across this answer on stackoverflow.
With Verilog, once you take a part-select, the result is unsigned. Use the
$signed
system task on the part select to make it signed.
Is this method synthesizable (ie the system task $signed
)
If it is not synthesizable, is there a different way to perform arithmetic shift on variables like a <= a>>>2
(this should give the quotient when a
is divided by 4).