public class CounterGenerator
extends Object
AddSubGenerator as a submodule to increment/decrement the counter.| Constructor and Description |
|---|
CounterGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static PBlock |
createCounter(Design d,
Site origin,
int width,
long initValue,
long step,
boolean countDown)
A method that implements a parameterizable counter for an UltraScale+ device using the
AddSubGenerator.createAddSub(Design, Site, int, boolean, boolean, boolean,
boolean) method to create an adder/subtractor submodule to increment/decrement the counter. |
static void |
main(String[] args)
Implements a parameterizable counter for an UltraScale/UltraScale+ device and routes the counter using RWRoute.
|
public static PBlock createCounter(Design d, Site origin, int width, long initValue, long step, boolean countDown)
AddSubGenerator.createAddSub(Design, Site, int, boolean, boolean, boolean,
boolean) method to create an adder/subtractor submodule to increment/decrement the counter.d - Parent design to contain the counterorigin - Anchor site to place the counterwidth - Width of the counterinitValue - The initial value of the counterstep - How much the value of the counter changes each clock cyclecountDown - The counter will count down if true, and count up otherwisepublic static void main(String[] args)