Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="inWidth">bit-width of operand</param>
 /// <param name="outWidth">bit-width of result</param>
 /// <param name="latency">desired latency</param>
 public FixedAbs(int inWidth, int outWidth, int latency)
 {
     InputWidth  = inWidth;
     OutputWidth = outWidth;
     Latency     = latency;
     if (latency > 1)
     {
         _pipeIn  = new SLVSignal(outWidth);
         _pipeOut = new SLVSignal(outWidth);
         _rpipe   = new RegPipe(latency, inWidth);
     }
     TASite = new TASiteImpl(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="inWidth">bit-width of operand</param>
 /// <param name="outWidth">bit-width of result</param>
 /// <param name="latency">desired latency</param>
 public FixedAbs(int inWidth, int outWidth, int latency)
 {
     InputWidth = inWidth;
     OutputWidth = outWidth;
     Latency = latency;
     if (latency > 1)
     {
         _pipeIn = new SLVSignal(outWidth);
         _pipeOut = new SLVSignal(outWidth);
         _rpipe = new RegPipe(latency, inWidth);
     }
     TASite = new TASiteImpl(this);
 }