XC3000 | XC4000E | XC4000X | XC5200 | XC9000 | Spartan | SpartanXL | Virtex |
---|---|---|---|---|---|---|---|
Macro | Macro | Macro | Macro | Macro | Macro | Macro | Macro |
CJ4CE, CJ5CE, and CJ8CE are clearable Johnson/shift counters. The asynchronous clear (CLR) input, when High, overrides all other inputs and causes the data (Q) outputs to go to logic level zero, independent of clock (C) transitions. The counter increments (shifts Q0 to Q1, Q1 to Q2,and so forth) when the clock enable input (CE) is High during the Low-to-High clock transition. Clock transitions are ignored when CE is Low.
For CJ4CE, the Q3 output is inverted and fed back to input Q0 to provide continuous counting operation. For CJ5CE, the Q4 output is inverted and fed back to input Q0. For CJ8CE, the Q7 output is inverted and fed back to input Q0.
The counter is asynchronously cleared, output Low, when power is applied. For CPLDs, the power-on condition can be simulated by applying a High-level pulse on the PRLD global net. FPGAs simulate power-on when global reset (GR) or global set/reset (GSR) is active. GR for XC3000 is active-Low. GR for XC5200 and GSR (XC4000, Spartans, Virtex) default to active-High but can be inverted by adding an inverter in front of the GR/GSR input of the STARTUP or STARTUP_VIRTEX symbol.
Inputs | Outputs | |||||
---|---|---|---|---|---|---|
CLR | CE | C | Q0 | Q1 | Q2 | Q3 |
1 | X | X | 0 | 0 | 0 | 0 |
0 | 0 | X | No Chg | No Chg | No Chg | No Chg |
0 | 1 | !q3 | q0 | q1 | q2 | |
q = state of referenced output one setup time prior to active clock transition |
CJ4CE Truth Table
Inputs | Outputs | ||||||
---|---|---|---|---|---|---|---|
CLR | CE | C | Q0 | Q1 | Q2 | Q3 | Q4 |
1 | X | X | 0 | 0 | 0 | 0 | 0 |
0 | 0 | X | No Chg | No Chg | No Chg | No Chg | No Chg |
0 | 1 | !q4 | q0 | q1 | q2 | q3 | |
q = state of referenced output one setup time prior to active clock transition |
CJ5CE Truth Table
Inputs | Outputs | |||
---|---|---|---|---|
CLR | CE | C | Q0 | Q1 - Q7 |
1 | X | X | 0 | 0 |
0 | 0 | X | No Chg | No Chg |
0 | 1 | !q7 | q0 - q6 | |
q = state of referenced output one setup time prior to active clock transition |
CJ8CE Truth Table
Figure 4.39 CJ8CE Implementation XC3000, XC4000, XC5200, XC9000, Spartans, Virtex |