Difference between revisions of "CasperTutorial01"

From AstroBaki
Jump to navigationJump to search
Line 9: Line 9:
 
\begin{document}
 
\begin{document}
 
\begin{center}{\bf\LARGE Tutorial 1: Introduction to Simulink}\end{center}
 
\begin{center}{\bf\LARGE Tutorial 1: Introduction to Simulink}\end{center}
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig1.png}\end{figure}
 
  
 
\tableofcontents
 
\tableofcontents
Line 20: Line 18:
 
In this tutorial, you will create a simple Simulink design using the standard
 
In this tutorial, you will create a simple Simulink design using the standard
 
Xilinx System Generator blockset and library blocks specific to ROACH.
 
Xilinx System Generator blockset and library blocks specific to ROACH.
At the end of this tutorial, you will have a BORPH executable file (a BOF file)
+
At the end of this tutorial, you will have a model file that looks like this:
and you will know how to interact with a ROACH board your running hardware design using
+
 
BORPH.
+
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig1.png}\end{figure}
 +
 
 +
You will also have a BORPH executable file (*.bof) that can be used to program a ROACH
 +
and you will know how to interact with a ROACH board your running hardware design.
 +
 
 +
\section{Creating Your Simulink Design}
  
\section{Creating Your Design}
+
\subsection{Beginning a New Model}
  
Create a new model: Start Matlab and open Simulink (by typing simulink
+
Our goal in this section is to start a new Simulink Model and add the following blocks:
on the Matlab command line).
 
  
\subsection{Create a new model}
+
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig1a.png}\end{figure}
 +
 
 +
Start Matlab and open Simulink (type "simulink"
 +
on the Matlab command line).  Start a new model file by following Simulink Library Browser $\rightarrow$ File $\rightarrow$ New $\rightarrow$ Model:
  
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig2.png}\end{figure}
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig2.png}\end{figure}
Line 35: Line 40:
 
\subsubsection{Add Xilinx System Generator and XSG Core Config blocks}
 
\subsubsection{Add Xilinx System Generator and XSG Core Config blocks}
  
All CASPER designs must have two blocks: a System Generator and an XSP Core Config.
+
All CASPER designs must have two blocks: a System Generator and an XPS Core Config.
 
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig1a.png}\end{figure}
 
  
Locate the Xilinx
+
Go to Simulink Library Browser $\rightarrow$ Xilinx Blockset $\rightarrow$ Basic Elements and drag a System Generator
Blockset Library's Basic Elements subsection and drag a System Generator
+
block onto your new model. You should not configure this block directly; add an
token onto your new file. You should not configure this block directly; the XSG
+
XSG Core Config block from Simulink Library Browser $\rightarrow$ BEE\_XPS System Blockset to do it for you:
core config from the BEE XPS System Blockset library to do it for you:
 
  
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig3.png}\end{figure}
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig3.png}\end{figure}
  
All hardware-related blocks are yellow and can be found in the BEE\_XPS
+
All hardware-related (possibly board-specific) blocks are yellow and can be found in this BEE\_XPS
library. This library contains all the board-specific components colloquially
+
library. Blocks relating to Digital Signal Processing (DSP) are found in the CASPER DSP library and have other colors.
called Yellow Blocks.
 
DSP blocks are found in the CASPER DSP library and have other colors.
 
  
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig4.png}\end{figure}
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig4.png}\end{figure}

Revision as of 10:07, 26 March 2010