OpenCores
URL https://opencores.org/ocsvn/pltbutils/pltbutils/trunk

Subversion Repositories pltbutils

[/] [pltbutils/] [trunk/] [doc/] [required_updates.txt] - Rev 101

Go to most recent revision | Compare with Previous | Blame | View Log

pltbutils required_updates.txt

While pltbutils is still in alpha- and beta state, backwards compatibility in
new versions of pltbutils is not prioritized, because the code is still under
development. 
If you have made testbenches which use pltbutils, you may need to make
modifications if you update to a newer version of pltbutils.
This document lists required modifications to your testbenches.

beta0003 -> beta0004 and later
1. In your testbench, replace
     startsim("ExampleName", pltbv, pltbs);
   with 
     startsim("ExampleName", "", pltbv, pltbs);
   The new argument 2 is a std_logic_vector for skipping tests.
   Read more in the specification. 
2. If you have created your own procedure custom_endsim_msg(),
   it must now have a new argument:
      procedure custom_endsim_msg(
        constant testcase_name      : in string;
        constant timestamp          : in time;
        constant num_tests          : in integer;
        constant num_skip_tests     : in integer; -- New argument
        constant num_checks         : in integer;
        constant num_errors         : in integer;
        constant show_success_fail  : in boolean
      )
3. If you have created your own procedure custom_endtest_msg(),
   it must now have a new argument:
      procedure custom_endtest_msg(
        constant test_num           : in integer;
        constant test_name          : in string;
        constant timestamp          : in time;
        constant test_active        : in boolean; -- New argument
        constant num_checks_in_test : in integer;
        constant num_errors_in_test : in integer
      ) 

alpha0006 -> alpha0007 and later
Nothing.

alpha0005 -> alpha0006
For more information and examples, see specification_pltbutils.pdf .
1. One less file to be compiled: 
   src/vhdl/pltbutils_type_pkg.vhd has been removed.
2. testname() has been removed. Call starttest() and endtest() instead.
3. In the testbech top, replace
      -- Simulation status- and control signals
      signal test_num       : integer;
      -- VHDL-1993:
      --signal test_name      : string(pltbutils_test_name'range);
      --signal info           : string(pltbutils_info'range);
      -- VHDL-2002:
      signal test_name      : string(pltbutils_sc.test_name'range);
      signal info           : string(pltbutils_sc.info'range);

      signal checks         : integer;
      signal errors         : integer;
      signal stop_sim       : std_logic;
   with
     -- Simulation status- and control signals
     -- for accessing .stop_sim and for viewing in waveform window
     signal pltbs          : pltbs_t := C_PLTBS_INIT;
   
4. In the testbench top, under begin, remove
      -- Simulation status and control for viewing in waveform window
      -- VHDL-1993:
      --test_num  <= pltbutils_test_num;
      --test_name <= pltbutils_test_name;
      --checks    <= pltbutils_chk_cnt;
      --errors    <= pltbutils_err_cnt;
      -- VHDL-2002:
      test_num  <= pltbutils_sc.test_num;
      test_name <= pltbutils_sc.test_name;
      info      <= pltbutils_sc.info;
      checks    <= pltbutils_sc.chk_cnt;
      errors    <= pltbutils_sc.err_cnt;
      stop_sim  <= pltbutils_sc.stop_sim;
  
5. Feed stop_sim input of testbench component with pltbs.stop_sim instead
   of just stop_sim.
6. If the testcase procudure resides in a separate VHDL component,
   that component should output pltbs of type pltbs_t.
7. The testcase process should instansiate the following variable:
     variable pltbv  : pltbv_t := C_PLTBV_INIT;
8. In calls to pltbutils procedures, replace the argument 
     pltbutils_sc
   with
     pltbv, pltbs
9. In the waveform window, replace the old simulation status signals
   with pltbs, and expand it to view the member elements.     

alpha0004 -> alpha0005
1. One more file needs to be compiled: src/vhdl/pltbutils_user_cfg_pkg.vhd .
2. Call starttest() before a test, and endtest() after.
   Previously, testname() should be called before a test, but testname() is
   now depricated and will be removed in a later version.
   

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.