Entity: FirAverageTb
- File: FirAverageTb.vhd
Diagram
Description
Company : SLAC National Accelerator Laboratory
This file is part of 'SLAC Firmware Standard Library'. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of 'SLAC Firmware Standard Library', including this file, may be copied, modified, propagated, or distributed except according to
the terms contained in the LICENSE.txt file.
Signals
Name | Type | Description |
---|---|---|
clk | std_logic | |
rst | std_logic | |
r | RegType | |
rin | RegType | |
dout | sfixed(r.dout'range) | |
validOut | sl | |
userOut | slv(r.userOut'range) | |
passed | sl | |
failed | sl |
Constants
Name | Type | Value | Description |
---|---|---|---|
TPD_C | time | 1 ns | |
CLK_PERIOD_C | time | 10 ns | |
ERROR_TOL_C | real | 0.0001 | |
RUN_CNT_C | integer | 10000 | |
FILT_LEN_C | integer | 16 | |
ILEAVE_C | integer | 21 | |
REG_INIT_C | RegType | ( cnt => 0, passed => '0', failed => '0', halt => '0', dinR => 0.0, doutR => 0.0, din => (others => '0'), dout => (others => '0'), validIn => '0', validOut => '0', userIn => (others => '0'), userOut => (others => '0'), filtArray => (others => 0.0), expected => 0.0, err => 0.0, maxError => 0.0, state => INIT_S) |
Types
Name | Type | Description |
---|---|---|
StateType | ( INIT_S, RUNNING_S, FAILED_S, PASSED_S) |
|
RegType |
Functions
- realMean (arg : RealArray) return real
Processes
- comb: ( dout, validOut, userOut, rst, r )
- seq: ( clk )
- unnamed: ( failed, passed )
Instantiations
- U_ClkRst: surf.ClkRst
- U_DUT: work.FirAverage