Embedded Design: Enabling RoboticsSpring 2015Lab Assignment 61v 1.4Lab Assignment 6Programming FPGA using SimulinkThe goal of this lab is to develop a digital design and download the design on to the FPGA usingSimulink. You will be using the Simulink HDL Coder to program the FPGA on the ZedBoard.The lab will span a minimum of two weeks (Lab 6 in week 1, and Lab 7 in week 2). Over theseweeks we will first connect switches to LEDs, then control the LED with a simple counter, andfinally control an LED with a push button.InstructionsEach lab assignment consists of a set of pre-lab questions, the actual time in the lab, and alab report.The pre-lab assignments prepare you for the challenges you will be facing in the actuallab. So that each lab member gets the same benefits, pre-lab assignments have to besolved individually. Feel free to discuss problems with class and lab mates, but completethe assignment on your own.Reading ListThe following reading list will help you to complete the pre-lab assignment. The readings willalso help you in subsequent lab assignments. Please complete the readings that are marked[Required]before attempting the pre-lab assignments.[1]Review materials on designing a counter[2]Chapter 2 of Simulink tutorial, how to program FPGAhttps://blackboard.neu.edu/[3]Mathworks materials on HDL coder
We have textbook solutions for you!

The document you are viewing contains questions related to this textbook.
Embedded Design: Enabling RoboticsSpring 2015Lab Assignment 62v 1.4Pre-Lab AssignmentWe have only very limited time for the lab available. To make efficient use of the lab time, youwill need to prepare for it. First, go through the assigned reading above and get an overview ofthe schematics and the manuals mentioned. Second, approach the questions below to apply yourknowledge. Please submit the solution to the pre-lab assignments in PDF format via blackboard.Counter designPre 6.1) Analyze counter behavior from Simulink.1)Open Simulink.2)Create a new Simulink Model. Clink on the “New” icon and select the Simulink Model.Wait for the model to get created (check the lower left area to see if MATLAB is busy, itmay take a few minutes to start).3)Simulink offers different solvers to cover everything from continues models (e.g. for controltheory) to discrete HDL (as in our case). To make this Simulink model correctly simulatecounters and discrete logic, select discrete solver with a fixed step size of 1.Open the configuration settings: “Simulation”-> “Model Configuration Parameters”.4)In the dialog “Configuration Parameters” select:a)Solver:“discrete (no continuous states)”,b)Type:“Fixed-step”c)Max step size:15)Click on the “Library Browser” icon (4 boxes, 2 of them red and blue).6)Allocate “Manual Switch”7)Allocate constant (from group Source), double click to get its properties. In “SignalAttributes”, change the “Output data type” to Boolean. In main tab, set Constant value to 0.8)
Upload your study docs or become a
Course Hero member to access this document
Upload your study docs or become a
Course Hero member to access this document
End of preview. Want to read all 8 pages?
Upload your study docs or become a
Course Hero member to access this document
Term
Spring
Professor
Prof.JohnKimani
Tags
switch, embedded system, ZEDBOARD