From 349622027cd8ac247337fe30d9db3d38f1f4593b Mon Sep 17 00:00:00 2001
From: donker <donker@astron.nl>
Date: Thu, 3 Dec 2020 15:41:59 +0100
Subject: [PATCH] L2SDP-184. adding missing tb

---
 .../dp/tb/vhdl/tb_tb_dp_block_from_mm.vhd     | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 libraries/base/dp/tb/vhdl/tb_tb_dp_block_from_mm.vhd

diff --git a/libraries/base/dp/tb/vhdl/tb_tb_dp_block_from_mm.vhd b/libraries/base/dp/tb/vhdl/tb_tb_dp_block_from_mm.vhd
new file mode 100644
index 0000000000..85a1c7f7af
--- /dev/null
+++ b/libraries/base/dp/tb/vhdl/tb_tb_dp_block_from_mm.vhd
@@ -0,0 +1,53 @@
+-- --------------------------------------------------------------------------
+-- Copyright 2020
+-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
+-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+-- --------------------------------------------------------------------------
+
+-- --------------------------------------------------------------------------
+-- Author: 
+-- . Pieter Donker
+-- Purpose:
+-- . Test bench running multiple tb_dp_block_from_mm.vhd with different settings 
+--
+-- Description:
+-- --------------------------------------------------------------------------
+
+-- > as 10
+-- > run -all  -- signal tb_end will stop the simulation by stopping the clk
+ 
+LIBRARY IEEE;
+USE IEEE.std_logic_1164.ALL;
+USE work.tb_dp_pkg.ALL;
+
+
+ENTITY tb_tb_dp_block_from_mm IS
+END tb_tb_dp_block_from_mm;
+
+
+ARCHITECTURE tb OF tb_tb_dp_block_from_mm IS
+  SIGNAL tb_end : STD_LOGIC := '0';  -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
+BEGIN
+  
+  u0_tst_1_1_1   : ENTITY work.tb_dp_block_from_mm GENERIC MAP (1, 1, 1);
+  u1_tst_2_2_17  : ENTITY work.tb_dp_block_from_mm GENERIC MAP (2, 2, 17);
+  u2_tst_2_2_256 : ENTITY work.tb_dp_block_from_mm GENERIC MAP (2, 2, 256);
+  u3_tst_2_4_256 : ENTITY work.tb_dp_block_from_mm GENERIC MAP (2, 4, 256);
+  u4_tst_2_6_256 : ENTITY work.tb_dp_block_from_mm GENERIC MAP (2, 6, 256);
+  u5_tst_2_8_256 : ENTITY work.tb_dp_block_from_mm GENERIC MAP (2, 8, 256);
+  u6_tst_3_6_17  : ENTITY work.tb_dp_block_from_mm GENERIC MAP (3, 6, 17);
+  
+END tb;
+  
\ No newline at end of file
-- 
GitLab