Design a finite state machine capable of serially adding and subtracting two binary numbers. In addition to a system clock, the system should have four inputs, A, B, S, and R where A and B are the operands, S is the operation selector (Add if S = 0, Subtract if S = 1), and R is a "reset" signal which will return the system to its initial state. The system should have four outputs, F, Z, N, and V, where F which is the serialized result of the operation, Z, which is 1 if the overall result is 0, N, which is 1 if the overall result is negative, and V, which is 1 if the overall result contains an overflow. The system should not be able to switch between addition or subtraction mid-operation.

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question

I need to write a adder and subtractor code for this github

https://tinyurl.com/verilogHDcode

 

Design a finite state machine capable of serially adding and subtracting two binary numbers. In addition
to a system clock, the system should have four inputs, A, B, S, and R where A and B are the operands, S
is the operation selector (Add if S = 0, Subtract if S = 1), and R is a "reset" signal which will return the
system to its initial state. The system should have four outputs, F, Z, N, and V, where F which is the
serialized result of the operation, Z, which is 1 if the overall result is O, N, which is 1 if the overall result is
negative, and V, which is 1 if the overall result contains an overflow. The system should not be able to
switch between addition or subtraction mid-operation.
Transcribed Image Text:Design a finite state machine capable of serially adding and subtracting two binary numbers. In addition to a system clock, the system should have four inputs, A, B, S, and R where A and B are the operands, S is the operation selector (Add if S = 0, Subtract if S = 1), and R is a "reset" signal which will return the system to its initial state. The system should have four outputs, F, Z, N, and V, where F which is the serialized result of the operation, Z, which is 1 if the overall result is O, N, which is 1 if the overall result is negative, and V, which is 1 if the overall result contains an overflow. The system should not be able to switch between addition or subtraction mid-operation.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Logic Gate and Its Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L