cspp topic 2

0.0(0)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/66

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:09 PM on 5/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

67 Terms

1
New cards

what is a truth table?

a table that lists all possible input combinations and their corresponding output values, to define the behaviour of a logic function

2
New cards

what is using two switches in series the logical equivalent of?

AND

3
New cards

what is the logical equivalent of using two switches in parallel?

OR

4
New cards

what is an advantage of K-maps?

reduces the need for a lot of calculation, uses simple pattern recognition ability in us

5
New cards

how does k-map work?

groups adjacent 1s to form simplified product terms

6
New cards

what does larger groups in a kmap mean?

more simplification

7
New cards

what is gray code in k-maps?

the specific ordering of variables along the rows and columns such that only one-bit changes between adjacent cells

8
New cards

why is gray coding used in k-maps?

to ensure that adjacent cells represent minterms that differ by only one variable

9
New cards

when are k-map cells considered adjacent?

if they differ by only one variable (ie. their binary representations differ by only one bit)

10
New cards

what is a don’t care state?

an input combination where the output can be 0 or 1, where it does not matter for real-world operation of the circuit

11
New cards

what is the benefit of having don’t care states?

allows us to create simpler logic expression, as we can conclude that these cases are irrelevant or will never occur, so we can treat them as 0 or 1 to simplify the expressions

12
New cards

what are combinational logic circuits?

digital circuits where the output depends only on the current input values

13
New cards

what is an adder?

a digital circuit that performs addition operation on binary numbers, found inside the ALU

14
New cards

what purpose do adders serve in the ALU?

used to calculate addresses, table indices, and similar operations

15
New cards

what are the 5 types of adders?

half adder, full adder, ripple adder, look ahead carry unit, carry-save adder

16
New cards

what does a 1-bit half adder do?

performs the addition of two bits

17
New cards

what does a 1-bit full adder do?

adds 3 inputs together, 3rd input can be the carry over from the previous half adder

18
New cards

how can an n-bit full adder be created?

using the same logic of two half adders in series, with n half adders

19
New cards

how can an adder be converted into an adder/subtractor?

add a control input Z such that

  • when Z = 0, S = A+B

  • when Z = 1, S = A-B

20
New cards

how can we calculate (-B) using two’s complement?

invert the n-bit binary number B by finding Z XOR B, use Z as the carry-in of the adder

21
New cards

what is active high?

a state in a control signal if the signal performs its intended purpose when the voltage level is high (logic - 1)

22
New cards

what is active low?

a state in a control signal if the signal performs its intended purpose when the voltage level is low (logic - 0)

23
New cards

how dos a multiplexer work?

routes the selected data input to the output, the control input decides which data input is selected

24
New cards

what are common applications of a MUX?

source selection control, share one communication line between multiple senders, parallel to serial conversion

25
New cards

what is MUX?

multiplexer, a digital switch that has multiple inputs and a single output

26
New cards

what is DEMUX?

demultiplexer, a digital switch that has a single input and multiple outputs

27
New cards

what are common applications of a DEMUX?

share one communication line between multiple senders, serial to parallel conversion, a control for multiple lights

28
New cards

what is an encoder?

a circuit that produces a binary input code depending on which of he inputsare activated

29
New cards

what is a decoder?

a circuit that maps an n-bit code to 2^n one-hot outputs

30
New cards

what is 8421 BCD code?

the most commonly used binary coded decimal format, represents each decimal digit (0-9) using 4 binary bits

31
New cards

what is an encoder’s relation to BCD?

encoder encodes BCD

32
New cards

what is a decoder’s relation to BCD?

used when reading or displaying BCD values

33
New cards

what is an encoder’s role in BCD?

converts decimal inputs (0-9) into 4-bit BCD code

34
New cards

what is a decoder’s role in BCD?

converts 4-bit BCD input into one of 10 outputs (often driving display segments or indicators)

35
New cards

how many inputs and outputs does a decoder have?

n inputs, 2^n outputs

36
New cards

how many inputs and outputs does an encoder have?

2^n inputs, n outputs

37
New cards

what is a sequential circuit?

a circuit where output is determined by inputs and previous outputs

38
New cards

what does it mean for a basic latch to have asynchronous behaviour?

changes it output immediately whenever the inputs change

39
New cards

why is a basic latch unpredictable?

input signals may change at random times, making it hard to control when the latch updates

40
New cards

what can be done to a basic latch to gain control?

introduce an Enable (or Gate) signal

41
New cards

what do the different enable signals mean for a latch?

when enable = active, the latch is transparent and follows the inputs. when enable = inactive, the latch ignores inputs and holds its previous value

42
New cards

what does it mean for an enable signal to be driven by a clock in a gated latch?

latch becomes a clocked (gated) latch, it only updates during the clock’s active level

43
New cards

what is a gated d latch?

a modified SR latch where

  • D = 1, set

  • D = 0, reset

where D is data or delay

44
New cards

why is the gated D latch introduced?

using two states (S and R) is inconvenient, if the previous state of S is unknown, we might unnecessarily Reset first

45
New cards

how are flipflops constructed?

from latches from along with additional clock signals

46
New cards

why do flipflops respond less immediately than level-sensitive latches?

since flip-flops wait for a clock edge

47
New cards

what is an asynchronous storage element?

responds immediately to input changes (no clock involved)

48
New cards

what is a synchronous storage element?

responds only when a clock signal allows it

49
New cards

when does an asynchronous storage element change output?

output changes as soon as S or R (or input) changes

50
New cards

when does synchronous storage change output?

output changes only on a specific clock edge (rising or falling)

51
New cards

what is a clock?

a signal that repeatedly alternates between 0 or 1 at a fixed rate

52
New cards

what is a clock period?

the time for one complete cycle

53
New cards

what is clock frequency?

1 / clock period

54
New cards

what is clock triggering?

the way a flip flop responds to a clock

55
New cards

what are the two types of clock triggering?

positive edge triggering, negative edge triggering

56
New cards

how does positive-edge triggering work?

responds only when clock changes from 0 to 1

57
New cards

how does negative-edge triggering work?

responds only when clock change from 1 to 0

58
New cards

what do JK type flipflops do?

combines the behaviour of SR, D, and T flip-flops into one universal device

59
New cards

describe the behaviour of JK type flip flops

  • J = 1, K = 0 → set Q = 1

  • J = 0, K = 1 → reset Q = 0

  • J = 0, K = 0 → hold previous state

  • J = 1, K = 1 → toggle the output

60
New cards

why is a JK type flipflop considered a more robust version of SR?

free from the invalid state of the SR flip flop

61
New cards

where is the JK type flipflop often used?

counters, control circuits, and sequential logic systems

62
New cards

what are D Type flipflops?

a special case of JK flip flop where J = D and K = ¬D, and D stands for data or delay

63
New cards

how does a D type flip flop work?

like a gated D-latch, but responds only at clock edges (edge-triggered, not level-triggered)

64
New cards

how are D-type flipflops internally built?

using two latches in series

65
New cards

what is a T Type flipflop?

t stands for toggle, the output switches (flips) between 0 and 1 on every active clock edge when T = 1

66
New cards

describe the behaviour of T Type flipflops.

  • if T = 0, output holds previous state (no change)

  • if T = 1, output toggles on each clock edge (edge-triggered, not level-triggered)

67
New cards

when are T Type flipflops commonly used?

binary counters, frequency dividers, digital clocks