# DigiSim Logic Components > Reference for digital logic components in DigiSim with pin configurations and behavior. ## Input Components - **INPUT_SWITCH**: Manual toggle (1 output) - **CLOCK**: Configurable frequency generator (1Hz default) - **CONSTANT/CONSTANT_ZERO**: Fixed logic values ## Logic Gates - **AND/NAND**: 2-8 inputs, output=1 when all inputs=1 (inverted for NAND) - **OR/NOR**: 2-8 inputs, output=1 when any input=1 (inverted for NOR) - **XOR/XNOR**: 2-8 inputs, exclusive OR operation (inverted for XNOR) - **NOT**: 1 input inverter - **BUFFER**: Non-inverting signal conditioner ## Sequential Logic - **D_FLIP_FLOP**: Data storage with clock (D, CLK, PRE, CLR, Q, Q̅) - **JK_FLIP_FLOP**: Universal flip-flop with toggle (J, K, CLK, PRE, CLR, Q, Q̅) - **T_FLIP_FLOP**: Toggle flip-flop (T, CLK, CLR, Q, Q̅) - **SR_LATCH**: Set-reset latch (S, R, Q, Q̅) - **D_LATCH**: Transparent latch (D, EN, Q, Q̅) ## Memory Components - **REGISTER_8BIT**: 8-bit parallel register (D0-D7, CLK, CLR, Q0-Q7) - **COUNTER_8BIT**: 8-bit binary counter (CLK, CLR, EN, Q0-Q7, Carry) - **RAM/ROM**: Memory with address/data buses ## Arithmetic - **ALU_8BIT**: 8-bit arithmetic logic unit with operations and flags - **BINARY_ADDER**: Multi-bit addition (A, B, Cin, Sum, Cout) - **COMPARATOR**: Magnitude comparison (A>B, A=B, A