Home > c_plus_plus_serial_test_adapter

c_plus_plus_serial_test_adapter

C_plus_plus_serial_test_adapter is a project mainly written in C++ and C, it's free.

C++ implementation to test modules in Altera's DE2-70 FPGA developed using Verification Driven Development (VDD) in software.

MODIFYING YOUR FILES NAME FOR THE FIRST TIME There are three places that the name "your_file" is refered.

  1. [application_name]/build/makefile Change 'your_file.o' to '[new_file_name].o'
  2. [application_name]/src/your_file.cpp Change '#include your_file.h' to '#include [new_file_name].h'
  3. [application_name]/test/src/tests.h Change '#include your_file.h' to '#include [new_file_name].h'

WRITING TESTS

  1. You should write the tests prototypes in '[application_name]/test/src/tests.h' file
  2. You should tell to test framework that the new test will run writing 'ADD_TEST([your_test_name]);' inside 'run_tests' function in file '[application_name]/test/src/tests.h'
  3. You should write your test in file [application_name]/test/src/tests.cpp

TO RUN THE PROJECT

  1. Export the system variable with the path of your application:

    $ export PYTHONPATH=//bin/

  2. If you're running the tests just run the all_tests file. If you're running the application, go to the bin directory and run the hadapter file.