Difference between revisions of "CasperTutorial01"

From AstroBaki
Jump to navigationJump to search
Line 360: Line 360:
 
\section{Transferring your bitstream to your ROACH board}
 
\section{Transferring your bitstream to your ROACH board}
  
If you now open an explorer window and navigate to your projects directory, you
+
If you navigate to the directory containing your *.mdl file, you
 
will find a subfolder with the name of your Simulink design.
 
will find a subfolder with the name of your Simulink design.
  
Line 366: Line 366:
  
 
You will find your bitstreams inside the folder called bit\_files. There are
 
You will find your bitstreams inside the folder called bit\_files. There are
two files, with the same name but different extensions. The filenames
+
two files with names of the form
<design\_name>\_<start\_compile\_time>.XXX. Appending the start time guarantees
+
<design\_name>\_<start\_compile\_time>.XXX.
that you will not overwrite existing bitstreams when recompiling your same
 
design.
 
 
 
 
The .bit is the raw FPGA bitstream that you could load manually using a Xilinx
 
The .bit is the raw FPGA bitstream that you could load manually using a Xilinx
 
JTAG programmer. Of interest to us now is the .bof file. This is a BORPH
 
JTAG programmer. Of interest to us now is the .bof file. This is a BORPH
 
executable. We will transfer this to your ROACH board now.
 
executable. We will transfer this to your ROACH board now.
  
To transfer files to ROACH, you can use any standard Linux scheme. We will use
+
To transfer files to ROACH, you can use any program capable of doing Secure Copy over SSH
WinSCP which is a GUI program capable of doing SCP transfers (Secure Copy over
+
Protocol (SCP) transfers. On Linux, scp is the standard tool.
SSH Protocol). There is an icon on your desktop. Double-click it and you will
 
be presented with a dialog similar to the one below.  Complete it as shown and
 
click Login.
 
  
Host name: wsserv
+
You will then login to the Linux server wsserv that boots the ROACH boards and
user name: tutee
 
password: tutee
 
 
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig33.png}\end{figure}
 
 
 
You will then login to the Linux server wsserv which boots the ROACH boards and
 
 
hosts their filesystem. The ROACH filesystem lives in /srv/roach\_boot/etch/.
 
hosts their filesystem. The ROACH filesystem lives in /srv/roach\_boot/etch/.
  
In the root folder of this filesystem is a directory called boffiles. ROACH
+
In the root folder of this filesystem is a directory called /boffiles. ROACH
 
boards look in here for executable BORPH files. You will need to transfer your
 
boards look in here for executable BORPH files. You will need to transfer your
bof file into this directory and make it executable. The left portion of WinSCP
+
bof file into this directory and make it executable. Navigate to /srv/roach\_boot/etch/boffiles. This
is your local computer. Navigate to
 
c:\verb=\=projects\verb=\=<INITIAL>\_tut1\verb=\=bit\_files. The right portion
 
is the remote computer. Navigate to /srv/roach\_boot/etch/boffiles. This
 
 
directory is shared amongst all the ROACH boards, so you will notice a list of
 
directory is shared amongst all the ROACH boards, so you will notice a list of
 
everyone else's bof files too.
 
everyone else's bof files too.
 
Drag your file across from the left column to the right column to copy it across.
 
 
\begin{figure}[h!]\centering\includegraphics[scale=.5]{tut1_fig34.png}\end{figure}
 
  
 
\section{Connecting to your ROACH board}
 
\section{Connecting to your ROACH board}

Revision as of 17:16, 25 March 2010