Sat Summary: The Sat function clips the input, X, to the nearest value allowed in the output, Z. The width and format of each is controlled by the Xwidth, Zwidth, Xsigned and Zsigned parameters. The width of Z must be less than the width of X. Function: Z= XZmax ? Zmax :X) Zsigned Zmin Zmax _____________________________________ 1 -2^(Zwidth-1) 2^(Zwidth-1)-1 0 0 2^Zwidth-1 Signals: Z: Zwidth wide output (signed if Zsigned is selected) X: Xwidth wide input (signed if Xsigned is selected) Parameters: Name: actual module name Xwidth: width of the X (2-256) Xsigned: X is signed if selected, unsigned otherwise Zwidth: width of the Z (must be less than Xwidth) Zsigned: Z is signed if selected, unsigned otherwise Verilog Usage: Name(X,Z); Version: $Id: Sat.help,v 1.4 1994/10/06 18:52:52 peter Exp $