pub fn trunc_signed(x: i64, bits: u32) -> i64
Sign-extend x from its low bits (the int-precision truncation; bits >= 64 is a no-op). Matches the RTL’s $signed(x[bits-1:0]).
x
bits
bits >= 64
$signed(x[bits-1:0])