Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

More Quartus source-control questions

Is there an easy way to separate user files from files generated by Quartus? We have some user .bdf and .v files and also some wizard-generated .v files in the Quartus project directory. SOPC Builder and Quartus generate a lot of additional .v files and I don't know how to keep them separate so we know which files are which.

For CVS I could set ignore flags but it would almost have to be on a file-by-file basis since you can't simply exclude on an file-extension basis.

Anyone have a good approach to keep things nice and clean?

Thanks,

Andrew

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I use subversion and mark as versioned only files generated by me, there is no automatic inclusion of new files from a versioned directory. I do not know CVS very well, but doesnt it provide the same functionality.

    IzI
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by iztok.jeras@Jan 11 2007, 12:16 AM

    i use subversion and mark as versioned only files generated by me, there is no automatic inclusion of new files from a versioned directory. i do not know cvs very well, but doesnt it provide the same functionality.

    izi

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20496)

    --- quote end ---

    --- Quote End ---

    That&#39;s what I&#39;m planning to do but when anyone adds a component with a MegaWizard it&#39;s easy to forget that that file needs to be added. I guess the nightly builds will catch that...

    Thanks,

    Andrew
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found a way to keep it very clean. I am using RCS, and I made a batch file to check out all the necessary files, and none of the extraneous files.

    Basically, I make a new directory, and into it I check out:

    -All .vhd files I created

    -All .vhd files created by the MegaWizard

    -.ptf file

    -.qpf file

    -.qsf file

    -.cof file (you might not have one of these, I find it helpful in making .pof&#39;s)

    If you have custom components in your SOPC system it gets a little tricky. This thread was useful to me: http://forum.niosforum.com/forum/index.php...wtopic=5067&hl= (http://forum.niosforum.com/forum/index.php?showtopic=5067&hl=)

    Also, by default, files checked out are read only, so I have to change the permissions on some files.

    This system is also nice because I keep the version control repository on a network drive, which is backed up, and I check things out to my local drive, which is faster.

    Naturally, I have to update my batch file whenever I create new files, or stop using old files, but that&#39;s not too bad.

    -Brian
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by bgrattan@Jan 11 2007, 03:23 PM

    i found a way to keep it very clean. i am using rcs, and i made a batch file to check out all the necessary files, and none of the extraneous files.

    basically, i make a new directory, and into it i check out:

    -all .vhd files i created

    -all .vhd files created by the megawizard

    ...

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20512)

    --- quote end ---

    --- Quote End ---

    Do you copy the Wizard-generated files to your new directory? I haven&#39;t found a way of forcing the MegaWizard to place its output in a specific location.

    --- Quote Start ---

    originally posted by bgrattan@Jan 11 2007, 03:23 PM

    naturally, i have to update my batch file whenever i create new files, or stop using old files, but that&#39;s not too bad.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20512)

    --- quote end ---

    --- Quote End ---

    That&#39;s what I was hoping to avoid but I guess there&#39;s no really clean way of doing that.

    Thanks for the feedback,

    Andrew