Create a project about the on-board 3-d accelerometer in


Embedded Systems Assignment

Assignment 1

Create a project about a 128x3 (32 words, with 3 bits at each word) single-port RAM in Verilog, simulate the design, and load it into the Cyclone IV chip on the DE0-Nano board. The design uses two push-buttons and one DIP switch as inputs.

•One side of the DIP switch clears the memory address.

•The depressing of the first push-button indicates a memory write action. In this case, the 50 MHz clock signal available on the FPGA board is used as an input to increase the RAM address. The 3-bit data value written to a memory location at an address should represent the number of ones in the 7 address bits. For example, a value of 110 (=6) should be written to the location with an address of 1011111.

•Once the first push-button is released, the memory read is in action. In this case, the 3-bit data stored at the current address are to
be displayed using three LEDs.

The releasing of the second push-button increases the memory address by one.

In addition, connect the 5 least significant address bits to 5 LEDs. Write a DO file for the simulation. The simulation needs to demons trate the writing to the RAM followed by reading from the RAM, each involving a few RAM locations.

You need to do the following prior to compilation:

•Generate a Verilog file for the single-port RAM by using "the IP Catalog" of Quartus Prime. (Use "On Chip Memory" which is with in "Installed IP -> Library -> Basic Functions".)

•Add the Verilog file for the RAM to the project.

•Instantiate a memory component in the design.

•For the simulation you will need to include the altera_mf_verlibrary. This can be done in ModelSim-Altera using the "Libraries" tab within the "Start Simulation" window

Assignment 2

Create a project about the on-board 3-D accelerometer in Verilog, and load it into the Cyclone IV chip on the DE0-Nano board. The design uses one push-button and one LED.

•Pressing down the push-button turns off the LED.

•The LED is turned on when the board is suddenly moved. (The degree/direction of movement is of your choice, but should be reason
able.)

Demonstrate the project. There is no need for simulation.

HINT:

On the DE0-Nano board CD, which is available on the course Pilot website, copy the folder demonstration/DE0_NANO_GSensor to the PC hard drive. From the hard drive folder, you may use Quartus Prime to open an existing project file, compile the project, and program the board. There is no need to assign pins since that has already been done. Study the code.

DE0_NANO_G_Sensor.v contains the top-level module of the project.

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: Create a project about the on-board 3-d accelerometer in
Reference No:- TGS01701985

Expected delivery within 24 Hours