Embedded Systems Assignment
roy9211Assignment 1
(40%) Create a project about a 128x3 (32 words, wit
h 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-butto
ns 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 wri
tten to a memory location at
an address should represent the number of ones in t
he 7 address bits. For
example, a value of 110 (=6) should be written to t
he 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 t
he memory address by one.
In addition, connect the 5 least significant addres
s 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_ver
library. This can
be done in ModelSim-Altera using the “Libraries” ta
b within the “Start Simulation” window
Assignment2
(30%) Create a project about the on-board 3-D accel
erometer in Verilog, and load it
into the Cyclone IV chip on the DE0-Nano board. Th
e 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 mov
ed. (The degree/direction
of movement is of your choice, but should be reason
able.)
Demonstrate the project. There is no need for simu
lation.
HINT:
On the DE0-Nano board CD, which is available on the
course Pilot website,
copy the folder demonstration/DE0_NANO_GSensor to t
he PC hard drive. From the
hard drive folder, you may use Quartus Prime to ope
n 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.
- 7 years ago
- 15
- 4-6 pages essay for introduction to ethics on Utilitarianism theory?
- B 23 W8
- Critical Thinking DQ
- virtual PR of two local companies in the UAE. They should be comparable/competitive in providing services or producing commodities
- Avoiding Wikis
- HCS 325 Week 2 Individual Assignment Effective Communication Paper
- Week 4 BUS 308 Solution
- BUS 308 Week 4 Complete
- Hi , i have my essay for calss leader ship . i need help
- Mini essays