Question

In: Electrical Engineering

Create a circuit that allows the client to add numbers one by one into a register...

Create a circuit that allows the client to add numbers one by one into a register file (8 four-bit registers) by inputting:

1) the number itsself

2) the memory location

The circuit can be logic gates OR verilog code. whichever you prefer!

Thank you and I will rate!

Solutions

Expert Solution

We would be creating a Design that allows the client / user to write number one by one into a register file having 8 four-bit registers.

We are having 8 memory locations. So, bits required to represent 8 memory locations = log2(8) = log2(23) = 3log2(2) = 3.

The Design has DataIN (Number) as a 4 bit input, Address (Memory Location) as a 3 bit input, a Read/Write' input signal for reading/writing from/into the Register memory, CLK (Clock) signal as a clocking source for sequential stuffs and a DataOUT signal as a 4 bit output for reading from the Memory.

The Block Representation of the Design is shown below:

Verilog Implementation of this Design is given below:

module memory (output [3:0] DataOUT, input [3:0] DataIN, input [2:0] Address, input CLK, input RW); // module definition

reg [3:0] mem [2:0]; // register bank with 8 locations of 4 bits each

always @ (posedge CLK) // reading or writing will occur at positive edges of clock
begin
   if (RW)   DataOUT <= mem[Address]; // if Read/Write' is HIGH, memory will be read to DataOUT
   else mem[Address] <= DataIN; // if Read/Write' is LOW, memory will be written from DataIN
end

endmodule


Related Solutions

Create a circuit that allows the client to add numbers one by one into a register...
Create a circuit that allows the client to add numbers one by one into a register file (8 four-bit registers) by inputting: 1) the number itsself 2) the memory location The circuit can be logic gates OR verilog code. whichever you prefer! Thank you and I will rate!
1) Question with methods use scanner: 1) Create one method that will add four numbers (return...
1) Question with methods use scanner: 1) Create one method that will add four numbers (return method or regular public static void ) 2) Create another method that will subtract four numbers (return method or regular public static void ) 3) Create another method that will multiplay four numbers (return method or regular public static void ) 4) Create another method that will divide four numbers (return method or regular public static void ) 5) Create another method that will...
ARITHMETIC INSTRUCTIONS a) ADD with register/memory       ADD r [or] ADD M b) ADD immediate.      ...
ARITHMETIC INSTRUCTIONS a) ADD with register/memory       ADD r [or] ADD M b) ADD immediate.       ADI 8 bit data c) ADD with carry       ADC r [or] ADC M Exercise 1: Write Assembly Language Program to add any 3 numbers. Exercise 2: Write Assembly Language Program to add the value 05H with value stored in register C.
Describe, using words and drawings, how you would build a circuit to add floating point numbers.
Describe, using words and drawings, how you would build a circuit to add floating point numbers.
Get into pairs. One of you is the worker; the other is the client. Create a...
Get into pairs. One of you is the worker; the other is the client. Create a hypothetical situation in which the worker has been supporting the client. You need to demonstrate that you can discuss how the worker is meeting the needs of the client. You should also work together to identify and requirements for change. Explain how you would monitor your own work to ensure the required standard of support is maintained.
Create a 4 bit register and explain how it works
Create a 4 bit register and explain how it works
Create a method evenOdd() that sorts an array into even numbers on one side and the...
Create a method evenOdd() that sorts an array into even numbers on one side and the odd numbers on the other side public class ourArray { int[] Ar; int size; public int getSize() {    return size; } public ourArray() {    Ar = new int[100];    size = 0; } public void add(int e) {    Ar[size]= e;    size++; } public int remove() {    //save the last item           int save = Ar[size -1];   ...
Add to this arduino sketch such that you can add three externally-connected LEDs to your circuit...
Add to this arduino sketch such that you can add three externally-connected LEDs to your circuit board. Modify this code such that the first LED turns on if the ADC output value is between 0 and 340, the second LED turns on if the ADC output value is between 341 and 680, and the third LED turns on if the ADC output value is above 680 int potpin=0;// initialize analog pin 0 int ledpin=13;// initialize digital pin 13 int val=0;//...
How to add, multiply, and divide numbers in flowgorithm
How to add, multiply, and divide numbers in flowgorithm
9) Create a java programming where you will enter two numbers and create only one method,...
9) Create a java programming where you will enter two numbers and create only one method, which will return or display addition, substraction, multiplication, division, average and check which number is greater than the other. Everything in one method and call it in main method.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT