Debian Codegraph @

hdl/fpga/ip/nuand/simulation/rfic_spi_tb.vhd

raw
1 -- Copyright (c) 2020 Nuand LLC
2 --
3 -- Permission is hereby granted, free of charge, to any person obtaining a copy
4 -- of this software and associated documentation files (the "Software"), to deal
5 -- in the Software without restriction, including without limitation the rights
6 -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 -- copies of the Software, and to permit persons to whom the Software is
8 -- furnished to do so, subject to the following conditions:
9 --
10 -- The above copyright notice and this permission notice shall be included in
11 -- all copies or substantial portions of the Software.
12 --
13 -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 -- THE SOFTWARE.
20
21 library ieee;
22 use ieee.std_logic_1164.all;
23 use ieee.numeric_std.all;
24
25 library nuand ;
26 use nuand.util.all ;
27 use nuand.fifo_readwrite_p.all;
28 use nuand.common_dcfifo_p.all;
29 use nuand.bladerf_p.all;
30
31
32 entity rfic_spi_tb is
33 end entity ;
34
35 architecture arch of rfic_spi_tb is
36 signal clock : std_logic := '0' ;
37 signal reset : std_logic ;
38 signal tx_ota_req : std_logic ;
39 begin
40 clock <= not clock after 6.25 ns;
41 reset <= '1', '0' after 100 ns;
42 tx_ota_req <= '0', '1' after 1 us, '0' after 20 us;
43
44
45 uut: entity nuand.bladerf_rfic_spi_ctrl
46 port map(
47 sclk => open,
48 miso => '0',
49 mosi => open,
50 cs_n => open,
51
52 arbiter_req => open,
53 arbiter_grant => '1',
54 arbiter_done => open,
55
56 clock => clock,
57 reset => reset,
58 tx_ota_req => tx_ota_req
59 );
60
61
62 end architecture ;