1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
5 | <meta name="generator" content="ScreenSteps http://www.screensteps.com/" /> |
---|
6 | <title>Simulating the Design</title> |
---|
7 | <link href="../neutral.css" media="screen" rel="stylesheet" type="text/css" /> |
---|
8 | </head> |
---|
9 | |
---|
10 | <body class="lucida"> |
---|
11 | <div id="wrapper"> |
---|
12 | <div id="header"> |
---|
13 | <a id="logo" href="http://warp.rice.edu/trac/"><img src="http://warp.rice.edu/images/warpLogo.jpg" alt="Rice University WARP - Wireless Open-Access Research Platform" height="45" width="285" /></a> |
---|
14 | </div> |
---|
15 | <div id="mainnav" class="nav"> |
---|
16 | <ul> |
---|
17 | <li class="first active"><a href="/trac/wiki">Home</a></li><li><a href="/forums">Forums</a></li><li><a href="/trac/browser">Browse Source</a></li> |
---|
18 | </ul> |
---|
19 | </div> |
---|
20 | <div id="LessonContent"> |
---|
21 | <div class="LessonHeader"> |
---|
22 | <h1 class="LessonTitle">Simulating the Design</h1> |
---|
23 | </div> |
---|
24 | <div class="summary"> |
---|
25 | <p>In this section the design is simulated to ensure that is performs as expected.</p> |
---|
26 | </div> |
---|
27 | |
---|
28 | <div id="step_1" class="lessonStep top"> |
---|
29 | |
---|
30 | <div class="image"> |
---|
31 | <img src="images/Simulating_the_Design/media_1222052059819.png" width="560" height="365"> |
---|
32 | </div> <p>Now that the design is complete it needs to be simulated. As System Generator is an add-on to Simulink the same simulation environment can be used.</p> |
---|
33 | </div> |
---|
34 | <div class="clear"></div> |
---|
35 | <div id="step_2" class="lessonStep top"> |
---|
36 | |
---|
37 | <div class="image"> |
---|
38 | <img src="images/Simulating_the_Design/media_1222052065978.png" width="417" height="289"> |
---|
39 | </div> <p>Start off by changing the initial value of the <strong>phaseInc </strong>register to 2^20.</p> |
---|
40 | </div> |
---|
41 | <div class="clear"></div> |
---|
42 | <div id="step_3" class="lessonStep top"> |
---|
43 | |
---|
44 | <div class="image"> |
---|
45 | <img src="images/Simulating_the_Design/media_1222052080916.png" width="142" height="63"> |
---|
46 | </div> <p>Change the simlation time to 2^12. This will ensure that we will step through the entire sine and cosine ROM one step at a time. Press the <strong>play</strong> button to begin the simulation.</p> |
---|
47 | </div> |
---|
48 | <div class="clear"></div> |
---|
49 | <div id="step_4" class="lessonStep top"> |
---|
50 | |
---|
51 | <div class="image"> |
---|
52 | <img src="images/Simulating_the_Design/media_1222052181731.png" width="53" height="46"> |
---|
53 | </div> <p>Open the scope once completed and hit the <strong>autoscale</strong> (binoculars) button. This scales the output data to fit the screen extents.</p> |
---|
54 | </div> |
---|
55 | <div class="clear"></div> |
---|
56 | <div id="step_5" class="lessonStep top"> |
---|
57 | |
---|
58 | <div class="image"> |
---|
59 | <img src="images/Simulating_the_Design/media_1222052207653.png" width="560" height="431"> |
---|
60 | </div> <p>Smooth sinusoids that cover -0.5 to 0.5 and take 2^12 samples should be visible on the screen. At this point the design has been validated. However, as a good rule of thumb, it is better to simulate larger designs in shorter steps and intermediate points rather than trying to debug the entire model together.</p> |
---|
61 | |
---|
62 | |
---|
63 | <p>The final step is to create the HDL corresponding to this model.</p> |
---|
64 | </div> |
---|
65 | <div class="clear"></div> |
---|
66 | |
---|
67 | </div> |
---|
68 | <div id="lessonNavigation"> |
---|
69 | <table> |
---|
70 | <tr> |
---|
71 | <td class="lessonNav_Left"><a href="Creating_the_Model.html"><< Creating the Model</a></td> |
---|
72 | <td class="lessonNav_TOC"><a href="../Custom_Peripherals.html">Top</a></td> |
---|
73 | <td class="lessonNav_Right"><a href="Exporting_as_Peripheral_Core.html">Exporting as Peripheral Core >></a> </td> |
---|
74 | </tr> |
---|
75 | </table> |
---|
76 | </div> |
---|
77 | </div> |
---|
78 | </body> |
---|
79 | </html> |
---|