SVN Installation and Use with Active-HDL Source Revision Control

Overview

Active-HDL has the built-in mechanism to interface as a client with the most popular revision control systems such as SVN. In this application note we will install and use the following revision control software:

CollabNet Subversion as an SVN server software. TortoiseSVN is a standalone SVN client that augments Active-HDL's client capabilities.

Note: CollabNet and Tortoise software mentioned in this application note are free.

Installing SVN Server from CollabNet

  1. To get CollabNet Subversion Server go to http://www.collab.net/downloads/subversion and download the latest version of CollabNet Subversion Edge software.

  2. Install and start CollabNet Subversion Edge as per CollabNet's documentation. The end result should be as shown below.

  3. Create a repository like what is shown below.

    Install SVN client from Tortoise

  4. Go to http://tortoisesvn.net/downloads.html and choose either the 32-bit version or 64-bit version depending upon the type of computer used.

  5. Install the TortoiseSVN software. Open the Windows Explorer program and right-click to see the SVN options as shown below.

  6. Configure TortoiseSVN to point to the location of the repository. For this right click on any folder in the file Explorer and bring up Tortoise’s Repo-browser. Right-click on it to bring up the URL-field. Set the URL field of Repo-browser to point to the link to the repository that was created earlier in CollabNet, like the example below shows.

  7. More options will appear once a folder is under SVN version control. This will be explained later from within Active-HDL, but for now familiarize yourself with the screen shot below which covers all the options of TortoiseSVN.

    Integrating Active-HDL with Tortoise's tools

    There are 3 batch files that must be created and placed in the C:/Aldec/Active-HDL/BIN subfolder

    1. tortoisediff.bat with the following content

      start TortoiseProc.exe /command:diff /path:%1 
      
    2. tortoisereprobrowser.bat with the following content

      start TortoiseProc.exe /command:repobrowser 
      
    3. tortoiserevisiongraph.bat with the following content

      start TortoiseProc.exe /command:revisiongraph /path:%1  
      

    Configuring Source Control in Active-HDL

  8. Open Active-HDL and click on menu Tools | Preferences | Source Control | Setup and click the Register Provider button and select the SVN option as shown below.

  9. Click OK when done.

  10. Highlight Active-HDL SVN SCC Provider

  11. Click the Initialize Provider button, then Advanced button and choose the SVN option C:/Program Files/CollabNet/Subversion Client/svn.exe as shown below.

    Note: For SVN GUI Manager you may use Tortoise Repo-Browser and include the batch file from the path C:/ALDEC/Active-HDL/BIN/tortoiserepobrowser.bat as shown below.

  12. Click OK when done.

    Adding an Active-HDL design to SVN

  13. Open any design, select it on Design Browser, right-click on the design and select Source Control | Add design to Source Control as shown below.

  14. Click OK when done and observe the console output.

    Importing Active-HDL project from SVN

  15. Choose from menu bar: File | Open Workspace/Design Explorer and within Workspace/Design Explorer choose: File | Open Design from Source Control as shown below.

  16. Select the SVNSCC Open Project like the example shown below.

  17. Click OK when done.

    Updating SVN repository

  18. Go to menu Tools | Preferences | Source Control and select Check in Files when closing the design as shown below. Hence the appropriate source files will be automatically checked-out when edited and checked-in when Active-HDL is closed.

    Set additional Tortoise Tools in Active-HDL (optional)

  19. You may configure Active-HDL to call Tortoise's tools using External HDL Editors option. To do that open menu Tools | Preferences | Editors | External HDL Editors and define two new tools: TortoiseRevisionGraph and TortoiseDiff pointing to the respective batch files that you were advised to create above.

  20. Click OK when done.

  21. Invoke them with the selected file directly from Active-HDL's Design Browser by right-clicking and selecting the desired choice as shown below.



Printed version of site: www.aldec.com/en/support/resources/documentation/articles/1163