User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
springremote [2020/04/24 08:37]
jarom [Option #3: Run Xilinx Software on Lab Machines]
springremote [2020/09/02 17:06] (current)
nelson [Option #5: Vivado on a Linux Virtual Machine]
Line 6: Line 6:
 include the following (sorted from most preferable to least include the following (sorted from most preferable to least
 preferable). preferable).
 +--------------------
 =====Option #1: Install Vivado On Your Own Machine===== =====Option #1: Install Vivado On Your Own Machine=====
  
Line 46: Line 46:
  
 That should do it. That should do it.
 +--------------------
  
-=====Option #2: Vivado on a Linux Virtual Machine=====+===== Option #2: Run Xilinx Software on Lab Machines But Program Locally Using Adept2 (Windows)===== 
 + 
 +You will use the "​LabConnect"​ software from the college to run Vivado on the lab 
 +machines. ​ You will then install Digilent Adept 2, a smaller piece of 
 +software, on your machine to control the circuit board. 
 +Like option #1, it is ONLY available if you have Windows. ​ If you have 
 +a Mac you must do Option #2. 
 + 
 +PROS: 
 +  * Nothing big for you to install on your machine (a much smaller install). ​ Saves local disk space. 
 + 
 +CONS: 
 +  * At the mercy of good internet connectivity to get work done. 
 +  * Lab machines are not the fastest out there. 
 +  * Every time you go to do something with the board you will have to copy the .bit file you have created on the lab machine up to your local machine to program the board with it. 
 + 
 +===Instructions:​=== 
 + 
 +  - Go to: [[http://​ecen323wiki.groups.et.byu.net/​dokuwiki/​doku.php?​id=resources:​off_campus_tools#​digital_lab_remote_access]]. 
 +  - Follow the instructions there in the section titled "​LabConnect"​ (CAEDM is changing its website as things evolve so you may see slightly different things). 
 +  - Now, go to https://​store.digilentinc.com/​digilent-adept-2-download-only/​ 
 +  - Scroll down and click "​Download Here"​ 
 +  - Under "​System - Latest Downloads",​ click "​Windows - v2.20.1"​ 
 +  - Fill out the form with first and last name, email, etc. and click "​Submit"​ 
 +  - This should begin the download (21.7 MB) 
 +  - Run the installer, when prompted, the defaults for the most part are OK 
 +  - Once you have the application running, you should be able to plug in your FPGA and it will automatically connect.  
 + 
 +You will then use LabConnect to run the Vivado design tools. ​ Once you 
 +have a design completed you will have to copy the circuit configuration file (.bit) from the lab computers to your local machine and then use the Digilent Adept 2 sofware you just 
 +downloaded above to actually program the circuit board to test your circuits. 
 + 
 +==Connecting to a Board with Adept== 
 +Run the Adept you just installed to conect to the board. 
 + 
 +The first time you run Adept, Windows might take a while trying to update the Digilent drivers. ​ In my testing on a Win7 machine (old) I figured it would never finish so I told it to cancel. ​ It installed the standard drivers and everything worked just fine. 
 + 
 +When you fire up Adept, if the board is plugged in and powered on, it should auto-detect as shown in the figure below. ​ The 220 lab boards have xc7a100t FPGA devices on them and so the figure below shows this has been detected by the software. ​ This shows that it is ready to program the board and you are ready to go.  Any time the tutorials in the lab tell you to run the Xilinx Hardware Manager, you should run Adept on your local computer instead. 
 + 
 +{{::​adept.png|}} 
 + 
 +-------------------- 
 +===== Option #3: Run Xilinx Software on Lab Machines But Program Locally Using openocd (Mac or Linux)===== 
 + 
 +If you have problems with Options #2 or #5 you can use this one.  It is a hybrid of #2 and #3 and requires a much smaller download (has the same pros and cons as Option #2). 
 + 
 +This assumes you will use LabConnect as in Option #2.  CAEDM does have a LabConnect option to allow you to work on the BYU lab machines - follow the instructions above but do the Mac version of the install. ​ Most everything else is similar. ​ Once you have LabConnect installed you will be able to do Vivado designs on a lab machine in the department. 
 + 
 +The problem is that once you finish your design, you need a way to get the .bit file onto your local machine to program the board you have.  The following instructions show how to set up that step. 
 + 
 +Now, follow the instructions at: [[https://​github.com/​byu-cpe/​BYU-Computing-Tutorials/​wiki/​Program-7-Series-FPGA-from-a-Mac-or-Linux-Without-Xilinx]]. ​ It will show you how you can program the board directly from your Mac (or any other machine that will run '​openocd'​. 
 +-------------------- 
 + 
 +=====Option #4: Run Xilinx Software on Lab Machines But Program Locally Using A Linux VM and Vivado_Labs (Mac)===== 
 + 
 +This uses LabConnect like Options #2 and #3 but then uses a Linux Virtual Machine containing a stub of Vivado called '​Vivado_Labs'​ to actually program the board. ​ You would only use this if Option #3 fails for you.  It requires a much larger download and is much more complex than above. 
 + 
 +This assumes you will use LabConnect as in Options #2 and #3.  Follow the instructions in Option #2 above but do the Mac version of the install. ​ Most everything else is similar. ​ Once you have LabConnect installed you will be able to do Vivado designs on a lab machine in the department. 
 + 
 +The problem is that once you finish your design, you need a way to get the .bit file onto your local machine to program the board you have.  The following instructions show how to set up that step. 
 + 
 +  - Download a small virtual machine from Box [[https://​byu.box.com/​s/​gjluzfvgutbry647s90r017kzskh1a5z|with this link]]. ​ You only want the files whose name starts with "​Ubuntu"​ - there are 3. 
 +  - As in Option #2 above, install VMWare and import what you downloaded into VMWare. ​ Here [[https://​byu.box.com/​s/​fvvh12slc3h9lmy1d4g828fo55nn630e|is a video]]. ​ (Hit the back button to return after you have watched it). 
 +  - Once the VM boots, you need to run vivado_lab - that is the tool to actually program the board. ​ Here [[https://​byu.box.com/​s/​md5alzeon4vervn2e596x2xbvq1tv4qr|is a video of that]]. 
 +  - Later, you may need to be able to transfer things from your Mac to your Linux VM (like bitstreams if you upload them to your Mac).  To do so, here [[https://​byu.box.com/​s/​hocmgtxk2669t541hw7awaif5hd5i97d|is a video on that]]. 
 + 
 +-------------------- 
 + 
 + 
 +=====Option #5: Vivado on a Linux Virtual Machine=====
  
 Using the VMWare software, you will boot and run a copy of the Linux operating system Using the VMWare software, you will boot and run a copy of the Linux operating system
-on your own computer. ​ You can run this on either a Windows machine or a Mac, but this is the +on your own computer. ​ You can run this on either a Windows machine or a Mac, but the main use for this is if you have a Mac.  
-only option for you if you have a Mac.+
  
 PROS: PROS:
Line 61: Line 130:
   * It can be a bit resource-intensive (you are running Linux and your own computer'​s operating systems at the same time).   * It can be a bit resource-intensive (you are running Linux and your own computer'​s operating systems at the same time).
   * There is an extra layer of complexity with this operating- system-inside-an-operating-system. ​ Having the virtual machine involved may require extra attention to some details to keep it working.   * There is an extra layer of complexity with this operating- system-inside-an-operating-system. ​ Having the virtual machine involved may require extra attention to some details to keep it working.
-  * Will take up 30-60 GB of disk space on your machine ​as you install it, less once the install is done and you delete ​all the intermediate files.+  * Will take up > 70 GB of disk space on your machine ​during ​the install.  Once it is installed then it takes up about half that (after ​you delete the intermediate files). 
 + 
 +Before you start be aware that you need to have sufficient RAM as well.  I have 16 GB on my machine and 12 CPU cores. ​ I give 8GB RAM and 6 cores and it runs well.  What you only gave it 4GB?  Don't know for sure but I believe students have been OK with that
  
 ==== Instructions==== ==== Instructions====
Line 109: Line 180:
   - You log into the resulting virtual machine using the username //​student//,​ with the password //​fpga//​. ​ At this point you are running Linux, the Ubuntu18.04.2 distribution to be precise.   - You log into the resulting virtual machine using the username //​student//,​ with the password //​fpga//​. ​ At this point you are running Linux, the Ubuntu18.04.2 distribution to be precise.
   - If you are worried about disk space you can now safely delete all the zip files and pieces you downloaded. ​ Or, you could keep them for a while if you think you might have to re-do this in the future.   - If you are worried about disk space you can now safely delete all the zip files and pieces you downloaded. ​ Or, you could keep them for a while if you think you might have to re-do this in the future.
-  
- 
-=====Option #3: Run Xilinx Software on Lab ===== 
- 
-You will use the "​LabConnect"​ software from the college to run Vivado on the lab 
-machines. ​ You will then install Vivado Lab Edition, a smaller piece of 
-software, on your machine to control the circuit board. 
-Like option #1, it is ONLY available if you have Windows. ​ If you have 
-a Mac you must do Option #2. 
- 
-PROS: 
-  * Nothing big for you to install on your machine (a much smaller install). ​ Saves local disk space. 
- 
-CONS: 
-  * At the mercy of good internet connectivity to get work done. 
-  * Lab machines are not the fastest out there. 
-  * Every time you go to do something with the board you will have to copy the .bit file you have created on the lab machine up to your local machine to program the board with it. 
- 
-===Instructions:​=== 
- 
-  - Go to: [[http://​ecen323wiki.groups.et.byu.net/​dokuwiki/​doku.php?​id=resources:​off_campus_tools#​digital_lab_remote_access]]. 
-  - Follow the instructions there in the section titled "​LabConnect"​ (CAEDM is changing its website as things evolve so you may see slightly different things). 
-  - Now, go to www.xilinx.com 
-  - Click Support, then Downloads and Licensing, then 2019.1 on the left side of the screen. 
-  - Scroll down and find "​Vivado Lab Solutions - 2019.1 ​ Full Product Installation"​. Below that find: "​Vivado 2019.1: Lab Edition - Windows (TAR/GZIP - 707.71 MB)" {{ ::​xilinxinstall4.pdf |as shown here}}. ​ Click on it. 
-  - This will then require you to create an account at Xilinx in order to download. ​ Then, click Download. 
-  - Double-click the downloaded file (it should be 707MB in size). 
-  - When prompted, the defaults for the most part are OK.  It will put about a 5GB piece of software on your disk. 
- 
-You will then use LabConnect to run the Vivado design tools. ​ Once you 
-have a design completed you will have to copy the circuit configuration file from the lab computers to your local machine and then use the Lab Edition sofware you just 
-downloaded above to actually program the circuit board to test your circuits. 
  
 +.
 +--------------------
 =====How To Choose:​===== =====How To Choose:​=====