Boolean logic

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

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:52 PM on 10/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

What are the main features of boolean logic?

  • It is a branch of mathematics

  • created by George Boole

  • The values are binary so either True or False

  • 4 Main logic operators(in order of operation):

  • NOT

  • AND

  • OR

  • XOR


2
New cards

What is the algebraic and alternative symbols of AND?

Algebraic: ^ e.g. A ^ B

Alternative: . e.g A . B

3
New cards

What is the algebraic and alternative symbols of OR?

Algebraic: v e.g A v B

Alternative: + e.g. A + B

4
New cards

What is the algebraic symbol of XOR?

Algebraic: ⊕ e.g A ⊕ B

5
New cards

What is the algebraic and alternative symbols of NOT?

Algebraic: ¬ e.g ¬A

Alternative: Ā e.g Ā

6
New cards

What are the four algebraic operation names?

NOT = negation

AND = conjunction

OR = disjunction

XOR = exclusive disjunction

7
New cards

What is the difference between ¬(A ^ B) and ¬A ^ ¬B

  • The first one requires you to work out A ^ B first as it is in brackets then invert the 0 and 1.

  • The second one requires you to work out NOT A and NOT B first then add them.


8
New cards

What can you use to simplify boolean expressions?

Karnough maps

9
New cards

What are the 6 rules of K maps

  • Grouping should be a power of 2

  • no diagonal groups

  • they should be as large as possible

  • henceforth meaning fewest number of groups

  • overlapping allowed

  • wrapping around allowed


10
New cards

What is an adder and half adder?

  • Half adder - basic digital circuit used two add two singe bit numbers - has two outputs and two inputs - sum and carry. (carry is the 1 carried over)

  • Adder - extension of the half adder to add three bits. - two outputs - three inputs


11
New cards

Why do CPU’s not have half adders at the start?

Because that would require two molds to make full and half adders, so its cheaper just to make one.

12
New cards

What is the logic gate for a half adder?

knowt flashcard image
13
New cards

What is the truth table for a half adder?

knowt flashcard image
14
New cards

What is the logic gate for a full adder

knowt flashcard image
15
New cards

What is a half adder and its features?

  • It is the basic digital circuit used in computation to perform the addition of two single bit numbers.

  • therefore it has two inputs and two outputs

  • its two outputs are the carry out - which is the carry in binary addition and the sum which is the outputted number in the addition.


16
New cards

What is a full adder and it’s features?

  • it is an extension of the half adder where it adds three bits because the half adder can’t take the count into account.

  • therefore three inputs and two outputs

  • the extra input is Cin because it is the count.

  • you can connect these together to add together more bits.


17
New cards

What is a flip flop and its purpose?

  • A flip flop is a bi stable circuit with two stable states, used to store one bit of data as it loops

  • t has D and CLK inputs, and Q and NOT(Q) outputs

  • It is positive edge triggered: it changes only on the rising edge of the clock

  • If D = 1 at the rising edge, Q = 1 and NOT(Q) = 0

  • If D = 0 at the rising edge, Q = 0 and NOT(Q) = 1

  • Q holds its value until the next rising edge

  • It is used in memory units, shift registers, counters, latches, and synchronous circuits


18
New cards

Explain the different inputs and outputs in a D type flip flop

  • D input = data input which is what is wanted to be stored

  • CLK input = clock input - which controls when the data waiting is copied

  • Q - the main output of the stored bit

  • NOT Q = the opposite of Q. (When Q is 1 - NOT Q - 0) Visa versa.


19
New cards

What is the difference between twos compliment and sign and magnitude?

  • twos compliment has the MSB as a value.

  • e.g. in 8 bit binary if the MSB was 1 it could be -128

  • sign and magnitude has the MSB representing positive and negative.

  • e.g. the MSB being 1 means the number is negative and 0 = positive.


20
New cards

How to convert an integer to 2’s compliment?

e.g. 12

  1. write out the number normally = 0000 1100

  2. flip the signs = 1111 0011 - this is known as 1’s compliment

  3. add one to the LSB = 1111 0100

  4. that’s it


21
New cards

How to subtract numbers in binary?

e.g. 50 - 100

  1. write out 50 in binary = 00110010

  2. write out 100 in twos compliment - 10011100

  3. then add them together - 11001110 (NOTE if there is an overflow then ignore it and don’t use that bit in the final answer)

  4. the answer is also in twos compliment too.


22
New cards

What is the problem with sign and magnitude?

  • there are two different ways to represent 0:

  • 1000

  • 0000

  • this makes addition and subtraction difficult and can cause errors

  • this is why twos compliment is used


23
New cards

how do fractional signed numbers work in binary?

  • They are always in twos compliment and standard form

  • a decimal point is used to separate integers from fraction

  • it goes down in halves

  • e.g.

  • 2^-1 2^-2 2^-3

  • ½ ¼ 1/8


24
New cards

How do accuracy and precision change when representing a certain number of bits in fractional binary?


<p></p>
25
New cards

What are the two main benefits of normalization?

  • making sure there is only one possible combination of representing the number

  • Making sure you can keep it to the highest degree of accuracy possible.


26
New cards

What do positive and negative normalized floating point numbers start with?

Positive = 0.1

negative = 1.0

27
New cards

How to normalize a decimal number?

e.g. 6.5

  1. write out the value in binary

  2. Move the decimal point over to the first instance where it is normalized (shown in the image)

  3. in the image it has been moved three places to the left (become bigger) so the exponent must be three

  4. And therefore the mantissa will be the new value starting from the digit to the left of the decimal place


<p>e.g. 6.5</p><ol><li><p>write out the value in binary</p></li><li><p>Move the decimal point over to the first instance where it is normalized (shown in the image)</p></li><li><p>in the image it has been moved three places to the left (become bigger) so the exponent must be three </p></li><li><p>And therefore the mantissa will be the new value starting from the digit to the left of the decimal place</p></li></ol><p></p>
28
New cards

How does the mantissa effect precision?

Higher mantissa = higher precision and lower range

higher exponent = higher range and lower precision

29
New cards

What is the mantissa?

he part of a floating-point binary number that stores the significant digits and the sign of the value

30
New cards

What is the exponent?

the part of a floating-point binary number that scales the value by moving the binary point

31
New cards

What is normalization?

adjusts the mantissa and exponent so that the number has a unique and most precise format

32
New cards

What is truncation?

the process of shortening a number by discarding all digits beyond a specific point or available storage limit, without performing any rounding