Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design a piece of hardware that accepts a four-bit opcode input, and produces the appropriate values of capture_C, capture_Z, and capture_N according to the table
Design a piece of hardware that accepts a four-bit opcode input, and produces the appropriate values of capture_C, capture_Z, and capture_N according to the table below. You may represent your hardware in any technically correct form (e.g. mux, decoder, equations).
Opcode Mnemonic Affects C? Affects Z? Affects N? 0000 LD / MOV N N N 0001 EOR N Y Y 0010 AND N Y Y 0011 OR N Y Y 0100 ADD Y Y Y 0101 SUB Y Y Y Y 0110 LSR Y Y Y 0111 MUD Y Y 1000 JMP N N N 1001 BCC N N N 1010 BCS N N N 1011 BZC N N N 1100 BZS N N N 1101 BNC N N N 1110 BNS N N N 1111 Undefined. Don't care. Don't care. Don't care. alu_C 1 1 capture_CLD ! 1b 1 C 1 aluz ! 1 ! 1 ! capture_2 LD 1b 1 ! alu N capture_NLD 1b N Flags Instruction[7:4] opcode Instruction "Decoder" opcode capture_C capture_Z capture_N capture_C capture_2 capture_N Opcode Mnemonic Affects C? Affects Z? Affects N? 0000 LD / MOV N N N 0001 EOR N Y Y 0010 AND N Y Y 0011 OR N Y Y 0100 ADD Y Y Y 0101 SUB Y Y Y Y 0110 LSR Y Y Y 0111 MUD Y Y 1000 JMP N N N 1001 BCC N N N 1010 BCS N N N 1011 BZC N N N 1100 BZS N N N 1101 BNC N N N 1110 BNS N N N 1111 Undefined. Don't care. Don't care. Don't care. alu_C 1 1 capture_CLD ! 1b 1 C 1 aluz ! 1 ! 1 ! capture_2 LD 1b 1 ! alu N capture_NLD 1b N Flags Instruction[7:4] opcode Instruction "Decoder" opcode capture_C capture_Z capture_N capture_C capture_2 capture_NStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started