<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ece.iastate.edu/cpre584/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mihir</id>
	<title>Cpre584 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ece.iastate.edu/cpre584/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mihir"/>
	<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Special:Contributions/Mihir"/>
	<updated>2026-08-19T21:08:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=236</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=236"/>
		<updated>2012-02-01T22:46:10Z</updated>

		<summary type="html">&lt;p&gt;Mihir: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Convey architecture overview ===&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; &#039;&#039;ppt goes here&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
=== Vector Adder Example ===&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; &#039;&#039;ppt goes here&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program using the Fabric ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app&#039;s source code run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
This compiles both an emulator (CaeSimPers) and a C program that makes a coprocessor call to use the vector adder (UserApp.exe).  You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window or by running &#039;&#039;&#039;export CNY_SIM_THREAD=&#039;&#039;&#039;.  To run the sample application on the coprocessor fabric, you&#039;ll need to make sure the CNY_SIM_THREAD environment variable is unset or 0.  To run the software version of the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can also set the CNY_CALL_STATS environment variable; this variable gives back the number of times the coprocessor was called.  I.E. for this application, the coprocessor is called once.  Output from the terminal is reproduced in the following file:&lt;br /&gt;
&lt;br /&gt;
[[Media:Assignment1 team2 fabric.txt|Console Output]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the SW Model ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=228</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=228"/>
		<updated>2012-02-01T22:39:11Z</updated>

		<summary type="html">&lt;p&gt;Mihir: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program using the Fabric ===&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program using the Fabric ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app&#039;s source code run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
This compiles both an emulator (CaeSimPers) and a C program that makes a coprocessor call to use the vector adder (UserApp.exe).  You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window or by running &#039;&#039;&#039;export CNY_SIM_THREAD=&#039;&#039;&#039;.  To run the sample application on the coprocessor fabric, you&#039;ll need to make sure the CNY_SIM_THREAD environment variable is unset or 0.  To run the software version of the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can also set the CNY_CALL_STATS environment variable; this variable gives back the number of times the coprocessor was called.  I.E. for this application, the coprocessor is called once.  Output from the terminal is reproduced in the following file:&lt;br /&gt;
&lt;br /&gt;
[[Media:Assignment1 team2 fabric.txt|Console Output]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the SW Model ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=188</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=188"/>
		<updated>2012-02-01T18:56:47Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Simulator */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program using the Fabric ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app&#039;s source code run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
This compiles both an emulator (CaeSimPers) and a C program that makes a coprocessor call to use the vector adder (UserApp.exe).  You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window or by running &#039;&#039;&#039;export CNY_SIM_THREAD=&#039;&#039;&#039;.  To run the sample application on the coprocessor fabric, you&#039;ll need to make sure the CNY_SIM_THREAD environment variable is unset or 0.  To run the software version of the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can also set the CNY_CALL_STATS environment variable; this variable gives back the number of times the coprocessor was called.  I.E. for this application, the coprocessor is called once.  Output from the terminal is reproduced in the following file:&lt;br /&gt;
&lt;br /&gt;
[[Media:Assignment1 team2 fabric.txt|Console Output]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the SW Model ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=90</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=90"/>
		<updated>2012-01-31T01:59:10Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Fabric */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1-Team2-Fabric-start.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=89</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=89"/>
		<updated>2012-01-31T01:59:00Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Fabric */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1-Team2-Fabric-start.jpg.PNG]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=88</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=88"/>
		<updated>2012-01-31T01:58:50Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Fabric */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1-Team2-Fabric-start.jpg.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=87</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=87"/>
		<updated>2012-01-31T01:58:27Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Fabric */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1-Team2-Fabric-start.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=86</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=86"/>
		<updated>2012-01-31T01:57:31Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Fabric */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1-Team2-Fabric-start.ogg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=85</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=85"/>
		<updated>2012-01-31T01:56:16Z</updated>

		<summary type="html">&lt;p&gt;Mihir: /* Running in the Fabric */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1-Team2-Fabric-start.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=84</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=84"/>
		<updated>2012-01-31T01:50:12Z</updated>

		<summary type="html">&lt;p&gt;Mihir: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1 team2 fabric.txt]]&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=File:Assignment1_team2_fabric.txt&amp;diff=83</id>
		<title>File:Assignment1 team2 fabric.txt</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=File:Assignment1_team2_fabric.txt&amp;diff=83"/>
		<updated>2012-01-31T01:48:37Z</updated>

		<summary type="html">&lt;p&gt;Mihir: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
	<entry>
		<id>https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=82</id>
		<title>Team Gryffindor</title>
		<link rel="alternate" type="text/html" href="https://wikis.ece.iastate.edu/cpre584/index.php?title=Team_Gryffindor&amp;diff=82"/>
		<updated>2012-01-31T01:39:14Z</updated>

		<summary type="html">&lt;p&gt;Mihir: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox team&lt;br /&gt;
  |teamname = Team Gryffindor&lt;br /&gt;
  |image = gryffindor.png&lt;br /&gt;
  |caption = Gryffindor Team Logo&lt;br /&gt;
  |member1 = Chad Nelson - cnel711&lt;br /&gt;
  |member2 = Mihir  Awatramani - mihir&lt;br /&gt;
  |member3 = Mengduo Ma - marinama&lt;br /&gt;
  |member4 = Kuan-Hsing Ho - pm429015&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Convey HC-1 Machine ===&lt;br /&gt;
# Download and install [http://www.nomachine.com/download.php NX Client].&lt;br /&gt;
# Connect to convey-1.ece.iastate.edu using your ISU NetID and the password &#039;&#039;yournetid&#039;&#039;@123.&lt;br /&gt;
# Change your password by opening a terminal window and running the &#039;&#039;&#039;passwd&#039;&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
You can access the shared /home/cpre584_t2 folder by using the  &#039;&#039;&#039;su cpre584_t2&#039;&#039;&#039; command and entering our team password.&amp;lt;br&amp;gt;  Alternatively, you can access the two files Jone&#039;s created for us on the shared folders here on the wiki:&lt;br /&gt;
# Setup your Convey environmental variables ([[media:Setconveyenv.txt |Jone&#039;s Script]])&lt;br /&gt;
# Here&#039;s a copy of the Xilinx 11.1 src file:&lt;br /&gt;
&lt;br /&gt;
source /remote/Xilinx/11.1/settings64.sh&amp;lt;br&amp;gt;&lt;br /&gt;
export PATH=$PATH:/remote/Modelsim/6.4b/modeltech/linux_x86_64/&amp;lt;br&amp;gt;&lt;br /&gt;
export LM_LICENSE_FILE=1717@io.ece.iastate.edu:27006@io.ece.iastate.edu&lt;br /&gt;
&lt;br /&gt;
== Assignment #1 ==&lt;br /&gt;
Review Convey System&lt;br /&gt;
* Minimum&lt;br /&gt;
** Review architecture documentation&lt;br /&gt;
** Understand how Vector Adder example works&lt;br /&gt;
** Implement Vector Adder example (SW, Modelsim, HW)&lt;br /&gt;
* Extra 1: Own simple personality (min: simple mod to Adder)&lt;br /&gt;
* Extra 2: Explore other features&lt;br /&gt;
** e.g: using gdb (Gnu Debugger)&lt;br /&gt;
** e.g: SPAT (Simulator Performance Analysis Tool)&lt;br /&gt;
&lt;br /&gt;
=== Jone&#039;s E-mail ===&lt;br /&gt;
Once you log into the convey machine a few documents you will want to start looking through are bellow.  Note, there is a lot of detail to learn about the Convey system.  I would first suggest browsing through the document below to get a feel for the type of information they contain.  I’ve try to highlight some of the sections that will be useful to you and you are getting up to speed with the example application.&lt;br /&gt;
 &lt;br /&gt;
* /opt/convey/pdk/2010_08_09/doc/ConveyPDKReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyPDKReferenceManual.pdf | Convey PDK Reference Manual (.pdf)]]&lt;br /&gt;
** This document gives information about how to go about developing your own HW/SW designs on the convey system.&lt;br /&gt;
** Start with section 10.5 to quickly start playing with the system.  Then use the rest of Section 10 to help you understand the example C code.&lt;br /&gt;
** You will need to read through of other sections of this document to understand how the overall system works.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyProgrammersGuide.pdf&lt;br /&gt;
** [[Media:ConveyProgrammersGuide.pdf | Convey Programmers Guide (.pdf)]]&lt;br /&gt;
** Sections 8.1 and 8.2 gives more details on how to run an application (in SW, Simulation, or Hardware)&lt;br /&gt;
** Section 10.2, give more details on the assembly portions of the sample application from the PDK manual.&lt;br /&gt;
** Chapter 1 and 2 give overview info&lt;br /&gt;
** Chapter 12 talks about Environmental flags&lt;br /&gt;
** Chapter 14 talks about the Personality naming conventions.&lt;br /&gt;
&lt;br /&gt;
* /opt/convey/doc/ConveyReferenceManual.pdf&lt;br /&gt;
** [[Media:ConveyReferenceManual.pdf | Convey Reference Manual (.pdf)]]&lt;br /&gt;
** Chapters 1 and 2: Basic Overview&lt;br /&gt;
** Chapter 11: Details on personality structure.&lt;br /&gt;
&lt;br /&gt;
* [[Media:Convey PDK Training.pdf | Convey PDK (.pdf)]]&lt;br /&gt;
* [[Media:Convey Overview.pdf | Convey Overview (.pdf)]]&lt;br /&gt;
&lt;br /&gt;
=== Running the Sample Program ===&lt;br /&gt;
Section 10.5 of PDK Reference Manual explains how to run the sample software application.  It has been reproduced below in brief.&lt;br /&gt;
&lt;br /&gt;
The rev version installed on the Convey machine is from 2010-8-9; to copy the sample app run:&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/cae_pers_vadd pdk_sample&lt;br /&gt;
 cp -r /opt/convey/pdk/2010_08_09/pdk_apps/SampleAppVadd pdk_sample&lt;br /&gt;
&lt;br /&gt;
To make the sample project.&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/cae_pers_vadd/CaeSimPers/&lt;br /&gt;
 make&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You&#039;ll want to make sure that you haven&#039;t set your environmental variables.  You can do this by simply using a new terminal window.  To run the software version of the app:&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
You should see the program run and output the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.software.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Simulator ===&lt;br /&gt;
To run the sample application on the Coprocessor simulator, you&#039;ll need to set some environmental variables:&lt;br /&gt;
&lt;br /&gt;
 # Use the Coprocessor Simulator&lt;br /&gt;
 export CNY_SIM_THREAD=libcpSimLib2.so&lt;br /&gt;
 # Point to the emulator&lt;br /&gt;
 export CNY_CAE_EMULATOR=~/pdk_sample/cae_pers_vadd/CaeSimPers/CaeSimPers&lt;br /&gt;
&lt;br /&gt;
After setting the environmental variables, rerun the app:&lt;br /&gt;
&lt;br /&gt;
 cd ~/pdk_sample/SampleAppVadd/&lt;br /&gt;
 ./UserApp.exe&lt;br /&gt;
&lt;br /&gt;
The program will pause at the following screen for a 10-20 seconds... &lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator1.PNG]]&lt;br /&gt;
&lt;br /&gt;
...and then finish running the program.&lt;br /&gt;
&lt;br /&gt;
[[Image:Assignment1.simulator2.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Running in the Fabric ===&lt;br /&gt;
To run the sample application on the Coprocessor fabric, yoyu&#039;ll need to set CNY_SIM_THREAD environment variable to 0. &lt;br /&gt;
&lt;br /&gt;
You will notice that the application runs faster when using the fabric as compared to the simulator. &lt;br /&gt;
&lt;br /&gt;
The behavior of the coprocessor can be controlled by setting various environment variables. Typically used environment variables are defined in Section 8.2 of ConveyProgrammersGuide. A complete list can be found in section 12. &lt;br /&gt;
&lt;br /&gt;
Following is the output when sample application was run on the fabric with CNY_CALL_STATS set. Setting this variable gives back the number of times the coprocessor was calles. For this application, once.&lt;br /&gt;
&lt;br /&gt;
Warning: CNY_SIM_THREAD has the value: 0&lt;br /&gt;
which does not match known choices: cpSimLib2.so or libcpSimLib2.so&lt;br /&gt;
Getting signature&lt;br /&gt;
Running Sample Program 1&lt;br /&gt;
a1[0]=0 + a2[0]=0 = a3[0]=0&lt;br /&gt;
a1[1]=1 + a2[1]=2 = a3[1]=3&lt;br /&gt;
a1[2]=2 + a2[2]=4 = a3[2]=6&lt;br /&gt;
a1[3]=3 + a2[3]=6 = a3[3]=9&lt;br /&gt;
a1[4]=4 + a2[4]=8 = a3[4]=12&lt;br /&gt;
a1[5]=5 + a2[5]=10 = a3[5]=15&lt;br /&gt;
a1[6]=6 + a2[6]=12 = a3[6]=18&lt;br /&gt;
a1[7]=7 + a2[7]=14 = a3[7]=21&lt;br /&gt;
a1[8]=8 + a2[8]=16 = a3[8]=24&lt;br /&gt;
a1[9]=9 + a2[9]=18 = a3[9]=27&lt;br /&gt;
a1[10]=10 + a2[10]=20 = a3[10]=30&lt;br /&gt;
a1[11]=11 + a2[11]=22 = a3[11]=33&lt;br /&gt;
a1[12]=12 + a2[12]=24 = a3[12]=36&lt;br /&gt;
&lt;br /&gt;
:.. and finishing the program&lt;br /&gt;
&lt;br /&gt;
a1[92]=92 + a2[92]=184 = a3[92]=276&lt;br /&gt;
a1[93]=93 + a2[93]=186 = a3[93]=279&lt;br /&gt;
a1[94]=94 + a2[94]=188 = a3[94]=282&lt;br /&gt;
a1[95]=95 + a2[95]=190 = a3[95]=285&lt;br /&gt;
a1[96]=96 + a2[96]=192 = a3[96]=288&lt;br /&gt;
a1[97]=97 + a2[97]=194 = a3[97]=291&lt;br /&gt;
a1[98]=98 + a2[98]=196 = a3[98]=294&lt;br /&gt;
a1[99]=99 + a2[99]=198 = a3[99]=297&lt;br /&gt;
Sample 1 test passed - sum=14850&lt;br /&gt;
coprocessor calls: 1&lt;br /&gt;
&lt;br /&gt;
Experimenting with other environment variables : TO DO&lt;/div&gt;</summary>
		<author><name>Mihir</name></author>
	</entry>
</feed>