Hi All,
I need some hardware logic for the conversion of signed 16-bit number to unsigned 8-bit number. I'll really appreciate if someone could provide me that particular logic.
Regards
Adnan
assign Uns8B[7:0] = (Sgn16B[15]) ? 8'b0 : (Sgn16B > 255) ? 8'd255 : Sgn16[7:0];;
assign Uns8B[7:0] = {~Sgn16B[15],Sgn16B[14:8]};