Difference between revisions of "CasperTutorial01"

From AstroBaki
Jump to navigationJump to search
 
Line 45: Line 45:
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig3.png}\end{figure}
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig3.png}\end{figure}
  
You should not configure the {\bf System Generator} block directly; add an  
+
There appears to be a bug on the Linux version of Xilinx System Generator for Simulink that appears to be solved by setting {\it System Generator $\rightarrow$ Clock pin location} to "d7":
 +
 
 +
\begin{figure}[h!]\centering\includegraphics[scale=.5]{sysgen_d7_hack.png}\end{figure}
 +
 
 +
Otherwise you should not need to configure the {\bf System Generator} block directly; add an  
 
{\bf XSG Core Config} block from {\it Simulink Library Browser $\rightarrow$ BEE\_XPS System Blockset} to do it for you:
 
{\bf XSG Core Config} block from {\it Simulink Library Browser $\rightarrow$ BEE\_XPS System Blockset} to do it for you:
  
Line 281: Line 285:
  
 
If you are on a Linux machine, got to {\it Simulation $\rightarrow$ Configuration Parameters} to set the number of clock cycles in the simulation, and {\it Simulation $\rightarrow$ Start} to start the simulation.
 
If you are on a Linux machine, got to {\it Simulation $\rightarrow$ Configuration Parameters} to set the number of clock cycles in the simulation, and {\it Simulation $\rightarrow$ Start} to start the simulation.
 +
 +
If you get an error at this point, you may have a bug in your design.  However, if your error reads "Bad Cast From Null to Scalar" or causes Matlab itself to crash, and you are on a Linux system, the bug may not be your fault.  If you haven't already, try setting {\it System Generator $\rightarrow$ Clock pin location} to "d7" as per the recommendation in "Beginning a New Model".
  
 
You can watch the simulation progress in the status bar in the bottom right. It
 
You can watch the simulation progress in the status bar in the bottom right. It

Latest revision as of 16:56, 31 March 2010