Table of Contents
Like your SystemVerilog design files, the XDC file must be added to your project. Follow these instructions to add your .xdc file to your project.
Adding an Existing File
If you are using the Master Constraints file (which you should be doing), then edit a copy of it in your project directory as needed and keep the original for use in another project. In other words, copy or download the master XDC file to your current lab directory and then modify the copy. Each lab project should have its own XDC file.
- Place a copy of the constraints file in your lab directory (e.g. ecen220/lab3).
- Click on Add Sources just like in the Adding a SystemVerilog Design Module to a Project tutorial. However, this time select Add or create Constraints. Click Next.
- Click Add Files and then select the constraints file from the file explorer. Click OK.
- The added XDC file can be accessed from the Project Manager, in the Sources pane, inside the Constraints folder. Find the file and double click it to open it.
Creating a New File
If you are creating an XDC file from scratch, you can name it whatever you want.
- Click on Add Sources just like in the Adding a SystemVerilog Design Module to a Project tutorial. However, this time select Add or create Constraints. Click Next.
- Click Create File. Ensure that the File Type is XDC. Choose where you want to save the new file. A good place is in your “labN” directory. Click the File Location drop-down box and select Choose Location. Enter a name for the XDC file and click OK.
- Your new XDC file can be accessed from the Project Manager, in the Sources pane, inside the Constraints folder. Find the file and double click it to open it.