Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:programmable-logic:tutorials:add_fpgas_to_multisim:start [2021/09/16 08:56] – [Modify the Constraints File] Álmos Veres-Vitályos | learn:programmable-logic:tutorials:add_fpgas_to_multisim:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Adding Digilent FPGA Boards to Multisim ====== | ====== Adding Digilent FPGA Boards to Multisim ====== | ||
| + | |||
| <WRAP group> | <WRAP group> | ||
| This guide will provide a step by step tutorial of how to add a Digilent FPGA board to Multisim. To program your FPGA board through Multisim, follow this guide: [[learn: | This guide will provide a step by step tutorial of how to add a Digilent FPGA board to Multisim. To program your FPGA board through Multisim, follow this guide: [[learn: | ||
| Line 8: | Line 9: | ||
| <WRAP group> | <WRAP group> | ||
| * a [[https:// | * a [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| + | * Your favorite text editor | ||
| * [[https:// | * [[https:// | ||
| + | * Only needed for compiling, projects for boards not included originally in Multisim, can't be compiled by LabVIEW FPGA Compilation Tools. | ||
| + | * [[https:// | ||
| + | * Optional: Can be used to determine your board' | ||
| **Note:** //This same process can be applied to earlier FPGA boards, but instead of Vivado, [[https:// | **Note:** //This same process can be applied to earlier FPGA boards, but instead of Vivado, [[https:// | ||
| Line 15: | Line 20: | ||
| ---- | ---- | ||
| - | ===== Create | + | ===== Creating |
| ==== Download the Constraints File ==== | ==== Download the Constraints File ==== | ||
| <WRAP group>< | <WRAP group>< | ||
| - | Multisim needs two configuration files specific | + | Multisim needs two configuration files specific |
| - | For Digilent boards, you can find the xdc file specific to your board on the bottom right hand side of the board' | + | For Digilent boards, you can find the xdc file specific to your board on the board' |
| **Note:** //In this guide, an Arty-S7-50 will be used.// | **Note:** //In this guide, an Arty-S7-50 will be used.// | ||
| Line 31: | Line 36: | ||
| ==== Create the Configuration File ==== | ==== Create the Configuration File ==== | ||
| <WRAP group>< | <WRAP group>< | ||
| - | Open the downloaded constraints file in a text editor, then create an empty file, with the same name, but the ***.mspc** extension. This file will contain the available pins in Multisim PLD design. | + | Open the downloaded constraints file in a text editor, then create an empty file with the same base name and the ***.mspc** extension |
| - | First, create the header and the " | + | First, create the header and the " |
| </ | </ | ||
| <code html> | <code html> | ||
| Line 65: | Line 70: | ||
| <WRAP group>< | <WRAP group>< | ||
| - | The most tricky | + | The trickiest |
| </ | </ | ||
| {{ : | {{ : | ||
| Line 72: | Line 77: | ||
| ==== Modify the Constraints File ==== | ==== Modify the Constraints File ==== | ||
| <WRAP group>< | <WRAP group>< | ||
| - | In the constraints file, delete the "#" | + | In the constraints file, uncomment |
| **Note:** //You can uncomment every resource, as long as there aren't any conflicts: shared pins for multiple resources, like ADC and digital I/O - conflicts are mentioned in the xdc file, in comments.// | **Note:** //You can uncomment every resource, as long as there aren't any conflicts: shared pins for multiple resources, like ADC and digital I/O - conflicts are mentioned in the xdc file, in comments.// | ||
| </ | </ | ||
| - | {{ : | + | {{ : |
| </ | </ | ||
| ==== Fill in the Configuration File ==== | ==== Fill in the Configuration File ==== | ||
| <WRAP group>< | <WRAP group>< | ||
| + | The final step is to add the pins to Multisim, which can be done by adding the line below to the mspc file, for every pin. | ||
| + | <code html>< | ||
| + | |||
| + | In the code snippet, **pin_name** marks the name of the pin (which was set in the xdc file), **pin_mode** marks the mode in which the pin will be used (it can have the values **" | ||
| </ | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | ---- | ||
| + | ===== Adding the Configuration Files to Multisim ===== | ||
| + | <WRAP group>< | ||
| + | To make your configuration files available for Multisim, copy both files to the **pldconfig** directory of Multisim. The default path of the directory is: “// | ||
| + | |||
| + | Open Multisim, start a new PLD design and select the FPGA board you created the configuration files for. After naming your project, you should be able to select the pins you want to use in your project. | ||
| + | </ | ||
| + | {{ : | ||
| </ | </ | ||
| + | ---- | ||
| + | |||
| + | ===== Next Steps ===== | ||
| + | <WRAP group> | ||
| + | To program your FPGA board through Multisim, follow this guide: [[learn: | ||
| + | |||
| + | If you have any problems with this process, feel free to post your questions to the [[https:// | ||
| + | </ | ||

