Author Topic: A question for HDL developers. Where do you place your source and testbenches?  (Read 1504 times)

0 Members and 1 Guest are viewing this topic.

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6300
  • Country: 00
A question for HDL developers. Let's say that you have a verilog file named my_module.v and a testbench for it called my_module_tb.v. 

1. Do you place both files in the same directory or in separate directories? 

2. If you answered 'seperate directories', is the testbench directory under the source directory or do you use two independent directories trees, one source source files and one for test files?
 

Offline AK6DN

  • Regular Contributor
  • *
  • Posts: 61
  • Country: us
I use multiple directories to keep files.

Under my PROJECT directory, I typically have SRC and TESTBENCH directories, with project specific source and testbench files in each.

I also have LIBRARY SRC and TESTBENCH directories, where the files are shared across multiple projects.
 
The following users thanked this post: zapta

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4653
  • Country: nl
Just as for software development it does not matter from the computer perspective.

For the developer and coworkers (company) it is good to have a fixed structure across work. So using a similar directory structure for all your projects is good sense.

A lot of the proprietary IDE's for FPGA development force some directory setup upon you for their IP (intellectual property) stuff, and can write a load of work files to the top directory cluttering the perspective. So having a dedicated source directory within the project directory makes it easier to keep the important stuff separated from the less important stuff.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf