Question

Implement a 2-bit adder using only a 32x3 ROM. The adder adds two 2-bit numbers, {A1 A0} and {B1 B0}. The adder also has a carry-in (Cin) input. Thus there are 5 inputs: A1 A0, B1 B0, Cin. There are 3 outputs, a 2-bit sum (S1 S0) as well as a carry-out (Cout). Include a diagram of the ROM: label inputs/outputs correctly and show the contents of ROM cells (0's/1's).

Answer #1

Adder
Start out by picking 2 positive six bit binary numbers that are
less than 3210, written in 2's complement notation. The
eventual goal is to add these two numbers.
1) Look at the LSB bit of the numbers, and using logic gates
(NANDs, NORs, etc.) design a circuit that correctly gives the right
output for any possible combination of bits in the LSB place.
2) Now look at the next column to the left (next to LSB). In
this...

Design a 4-bit adder-subtractor circuit using the 4-bit binary
Full adders (74LS83) and any necessary additional logic gates. The
circuit has a mode input bit, M, that controls its operation.
Specifically, when M=0, the circuit becomes a 4-bit adder, and when
M=1, the circuit becomes a 4-bit subtractor that performs the
operation A plus the 2’s complement of B.Where A and B are two
4-bits binary numbers. That is,
* When M=0, we perform A+B, and we assume that
both...

Using T-Flip-flops, design a 3-bit register/counter circuit with
bits [A2 A1 A0]. The circuit operations are described in the
following table. Show all design details, i.e., write down steps
and equations and draw the detailed circuit diagram. S2 S1 S0
Operation 0 0 0 No change 0 0 1 Rotate left 0 1 0 Rotate right 0 1
1 Reset 1 0 0 Set 1 0 1 Count down 1 1 0 Count up 1 1 1 Load
external bits...

Section 2:
Using the MARS or SPIM simulator develop a program that will
implement the following conditional statement.
If ( n is even) { n = n / 2;
} else {
n = 3 * n + 1;
}
In this case, n is to be input by the user (assume they input a
non-negative value), the conditional is performed, and the
resulting n is to be output. Again, use the system calls for input,
output, and exiting the...

#Linked Lists and Classes #C++
Hi, please use singly linked list method to do this question.
Thank you!
Here’s the contents of a file called example.cpp:
// example.cpp
#include "LinkedList.h"
#include <iostream>
#include <string>
using namespace std;
int main() {
cout << "Please enter some words (ctrl-d to stop):\n";
LinkedList lst;
int count = 0;
string s;
while (cin >> s) {
count++;
lst.add(remove_non_letters(s));
} // while
cout << "\n" << count << " total words read in\n";
cout <<...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 24 minutes ago

asked 24 minutes ago

asked 26 minutes ago

asked 33 minutes ago

asked 35 minutes ago

asked 58 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 2 hours ago

asked 2 hours ago

asked 3 hours ago

asked 3 hours ago