PlTbUtils  1.3
PlTbUtils is a collection of functions, procedures and components for easily creating stimuli and checking response in automatic self-checking testbenches.
pltbutils_time_measure Entity Reference

Measures high-time, low-time and period of a signal, usually a clock. More...

Entities

bhv  architecture
 

Generics

G_VERBOSITY  integer := 0
G_RPT_LABEL  string := " pltbutils_time_measure "

Ports

t_hi_o   out   time
  High time.
t_lo_o   out   time
  Low time.
t_per_o   out   time
  Period time.
s_i   in   std_logic
  Signal to measure.

Detailed Description

Measures high-time, low-time and period of a signal, usually a clock.

Setting G_VERBOSITY to at least 20 reports measures times. Set G_RPT_LABEL to a prefix used in reports, typically the name of the signal being measured.

Instantiation template

(copy to your own file and remove the comment characters):

pltbutils_time_measure0 : pltbutils_time_measure
generic map (
G_VERBOSITY => G_VERBOSITY
G_RPT_LABEL => "sig"
)
port map (
t_hi_o => sig_t_hi,
t_lo_o => sig_t_lo,
t_per_o => sig_t_per,
s_i => sig
);
Measures high-time, low-time and period of a signal, usually a clock.
out t_hi_o time
High time.
G_RPT_LABEL string := "pltbutils_time_measure"
in s_i std_logic
Signal to measure.
out t_per_o time
Period time.
out t_lo_o time
Low time.

Definition at line 115 of file pltbutils_comp.vhd.

Member Data Documentation

◆ G_RPT_LABEL

G_RPT_LABEL string := " pltbutils_time_measure "
Generic

Definition at line 119 of file pltbutils_comp.vhd.

◆ G_VERBOSITY

G_VERBOSITY integer := 0
Generic

Definition at line 117 of file pltbutils_comp.vhd.

◆ s_i

s_i in std_logic
Port

Signal to measure.

Definition at line 125 of file pltbutils_comp.vhd.

◆ t_hi_o

t_hi_o out time
Port

High time.

Definition at line 121 of file pltbutils_comp.vhd.

◆ t_lo_o

t_lo_o out time
Port

Low time.

Definition at line 122 of file pltbutils_comp.vhd.

◆ t_per_o

t_per_o out time
Port

Period time.

Definition at line 123 of file pltbutils_comp.vhd.


The documentation for this class was generated from the following file: