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

Subversion Repositories pltbutils

[/] [pltbutils/] [trunk/] [doc/] [required_updates.txt] - Blame information for rev 109

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

Line No. Rev Author Line
1 103 pela
pltbutils required_updates.txt
2
 
3
While pltbutils is still in alpha- and beta state, backwards compatibility in
4
new versions of pltbutils is not prioritized, because the code is still under
5
development.
6
If you have made testbenches which use pltbutils, you may need to make
7
modifications if you update to a newer version of pltbutils.
8
This document lists required modifications to your testbenches.
9
 
10
beta0003 -> beta0004 and later
11
1. In your testbench, replace
12
     startsim("ExampleName", pltbv, pltbs);
13
   with
14
     startsim("ExampleName", "", pltbv, pltbs);
15
   The new argument 2 is a std_logic_vector for skipping tests.
16
   Read more in the specification.
17
2. If you have created your own procedure custom_endsim_msg(),
18
   it must now have a new argument:
19
      procedure custom_endsim_msg(
20
        constant testcase_name      : in string;
21
        constant timestamp          : in time;
22
        constant num_tests          : in integer;
23
        constant num_skip_tests     : in integer; -- New argument
24
        constant num_checks         : in integer;
25
        constant num_errors         : in integer;
26
        constant show_success_fail  : in boolean
27
      )
28
3. If you have created your own procedure custom_endtest_msg(),
29
   it must now have a new argument:
30
      procedure custom_endtest_msg(
31
        constant test_num           : in integer;
32
        constant test_name          : in string;
33
        constant timestamp          : in time;
34
        constant test_active        : in boolean; -- New argument
35
        constant num_checks_in_test : in integer;
36
        constant num_errors_in_test : in integer
37
      )
38
 
39
alpha0006 -> alpha0007 and later
40
Nothing.
41
 
42
alpha0005 -> alpha0006
43
For more information and examples, see specification_pltbutils.pdf .
44
1. One less file to be compiled:
45
   src/vhdl/pltbutils_type_pkg.vhd has been removed.
46
2. testname() has been removed. Call starttest() and endtest() instead.
47
3. In the testbech top, replace
48
      -- Simulation status- and control signals
49
      signal test_num       : integer;
50
      -- VHDL-1993:
51
      --signal test_name      : string(pltbutils_test_name'range);
52
      --signal info           : string(pltbutils_info'range);
53
      -- VHDL-2002:
54
      signal test_name      : string(pltbutils_sc.test_name'range);
55
      signal info           : string(pltbutils_sc.info'range);
56
 
57
      signal checks         : integer;
58
      signal errors         : integer;
59
      signal stop_sim       : std_logic;
60
   with
61
     -- Simulation status- and control signals
62
     -- for accessing .stop_sim and for viewing in waveform window
63
     signal pltbs          : pltbs_t := C_PLTBS_INIT;
64
 
65
4. In the testbench top, under begin, remove
66
      -- Simulation status and control for viewing in waveform window
67
      -- VHDL-1993:
68
      --test_num  <= pltbutils_test_num;
69
      --test_name <= pltbutils_test_name;
70
      --checks    <= pltbutils_chk_cnt;
71
      --errors    <= pltbutils_err_cnt;
72
      -- VHDL-2002:
73
      test_num  <= pltbutils_sc.test_num;
74
      test_name <= pltbutils_sc.test_name;
75
      info      <= pltbutils_sc.info;
76
      checks    <= pltbutils_sc.chk_cnt;
77
      errors    <= pltbutils_sc.err_cnt;
78
      stop_sim  <= pltbutils_sc.stop_sim;
79
 
80
5. Feed stop_sim input of testbench component with pltbs.stop_sim instead
81
   of just stop_sim.
82
6. If the testcase procudure resides in a separate VHDL component,
83
   that component should output pltbs of type pltbs_t.
84
7. The testcase process should instansiate the following variable:
85
     variable pltbv  : pltbv_t := C_PLTBV_INIT;
86
8. In calls to pltbutils procedures, replace the argument
87
     pltbutils_sc
88
   with
89
     pltbv, pltbs
90
9. In the waveform window, replace the old simulation status signals
91
   with pltbs, and expand it to view the member elements.
92
 
93
alpha0004 -> alpha0005
94
1. One more file needs to be compiled: src/vhdl/pltbutils_user_cfg_pkg.vhd .
95
2. Call starttest() before a test, and endtest() after.
96
   Previously, testname() should be called before a test, but testname() is
97
   now depricated and will be removed in a later version.
98 51 pela
 

powered by: WebSVN 2.1.0

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