1.2 Logical Operations Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Draw truth tables for AND, OR, NOT, XOR, NAND and NOR

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Draw truth tables for logical expressions (e.g. A AND B (B NOR C))

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain the purpose of masking, the logical operation and design the mask required for a given situation

A

The purpose of masking is to identify the value of a bit

e.g. to find out the value of the leftmost bit in 10001100

i would AND it by 10000000

if the output for the leftmost bit is 1, the value is 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain how XOR could be used to encrypt and decrypt data using an encryption/decryption key

A

XOR is used to create an encrypted value with a key and an original value

original: 10000000
Key: 10000000 XOR
—————————-
Encrypted value: 00000000

the data can only be decrypted by people who have access to the key

encrypted value: 00000000
Key: 10000000 XOR
—————————————
Original: 10000000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

solve boolean identities using e.g. de morgans law etc.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do you clear the contents of a register

A

you AND the register with 00000000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly