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

Subversion Repositories astron_mm

[/] [astron_mm/] [trunk/] [tb_tb_mm_file.vhd] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 danv
-------------------------------------------------------------------------------
2
--
3 3 danv
-- Copyright 2020
4 2 danv
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
5
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
6 3 danv
-- 
7
-- Licensed under the Apache License, Version 2.0 (the "License");
8
-- you may not use this file except in compliance with the License.
9
-- You may obtain a copy of the License at
10
-- 
11
--     http://www.apache.org/licenses/LICENSE-2.0
12
-- 
13
-- Unless required by applicable law or agreed to in writing, software
14
-- distributed under the License is distributed on an "AS IS" BASIS,
15
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
-- See the License for the specific language governing permissions and
17
-- limitations under the License.
18 2 danv
--
19
-------------------------------------------------------------------------------
20
 
21
-- Author:
22
--   E. Kooistra        Feb 2017  Initial.
23
-- Purpose: Multi testbench of tb_mm_file to verify mm_file and mm_file_pkg.
24
-- Usage:
25
-- > as 4
26
-- > run -all
27
 
28
LIBRARY IEEE;
29
USE IEEE.std_logic_1164.ALL;
30
 
31
ENTITY tb_tb_mm_file IS
32
END tb_tb_mm_file;
33
 
34
ARCHITECTURE tb OF tb_tb_mm_file IS
35
  SIGNAL tb_end : STD_LOGIC := '0';  -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
36
BEGIN
37
  -- g_tb_index           : NATURAL := 0;
38
  -- g_mm_nof_accesses    : NATURAL := 100;
39
  -- g_mm_timeout         : TIME := sel_a_b(g_mm_throttle_en, 1 ns, 0 ns);  -- default 0 for full speed MM, use > 0 to define number of mm_clk without MM access after which the MM file IO is paused
40
  -- g_mm_pause           : TIME := 1 us;                                   -- defines the time for which MM file IO is paused to reduce the file IO rate when the MM slave is idle
41
  -- g_timeout_gap        : INTEGER := -1;    -- no gap when < 0, else force MM access gap after g_timeout_gap wr or rd strobes
42
  -- g_cross_clock_domain : BOOLEAN := FALSE --TRUE
43
 
44
  u_one_clk                        : ENTITY work.tb_mm_file GENERIC MAP (0, 10000,   0 ns, 1 us, -1, FALSE);
45
  u_one_clk_mm_throttle            : ENTITY work.tb_mm_file GENERIC MAP (1, 10000, 100 ns, 1 us, -1, FALSE);
46
  u_cross_clk                      : ENTITY work.tb_mm_file GENERIC MAP (2,  1000,   0 ns, 1 us, -1, TRUE);
47
  u_cross_clk_mm_throttle          : ENTITY work.tb_mm_file GENERIC MAP (3,  1000, 100 ns, 1 us, -1, TRUE);
48
  u_with_gap_one_clk               : ENTITY work.tb_mm_file GENERIC MAP (4, 10000,   0 ns, 1 us,  3, FALSE);
49
  u_with_gap_one_clk_mm_throttle   : ENTITY work.tb_mm_file GENERIC MAP (5, 10000, 100 ns, 1 us,  3, FALSE);
50
  u_with_gap_cross_clk             : ENTITY work.tb_mm_file GENERIC MAP (6,  1000,   0 ns, 1 us,  3, TRUE);
51
  u_with_gap_cross_clk_mm_throttle : ENTITY work.tb_mm_file GENERIC MAP (7,  1000, 100 ns, 1 us,  3, TRUE);
52
 
53
END tb;

powered by: WebSVN 2.1.0

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