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

Subversion Repositories spiadc

[/] [spiadc/] [trunk/] [TestBench/] [RecvMasterTb.vhd] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 AlexRayne
-- Copyright (C) 1991-2008 Altera Corporation
2
-- Your use of Altera Corporation's design tools, logic functions 
3
-- and other software and tools, and its AMPP partner logic 
4
-- functions, and any output files from any of the foregoing 
5
-- (including device programming or simulation files), and any 
6
-- associated documentation or information are expressly subject 
7
-- to the terms and conditions of the Altera Program License 
8
-- Subscription Agreement, Altera MegaCore Function License 
9
-- Agreement, or other applicable license agreement, including, 
10
-- without limitation, that your use is for the sole purpose of 
11
-- programming logic devices manufactured by Altera and sold by 
12
-- Altera or its authorized distributors.  Please refer to the 
13
-- applicable agreement for further details.
14
 
15
-- PROGRAM              "Quartus II"
16
-- VERSION              "Version 8.1 Build 163 10/28/2008 SJ Web Edition"
17
-- CREATED ON           "Sun Jun 14 20:47:40 2009"
18
 
19
LIBRARY ieee;
20
USE ieee.std_logic_1164.all;
21
 
22
LIBRARY work;
23
 
24
ENTITY RecvMasterTb IS
25
        PORT
26
        (
27
                CLC :  IN  STD_LOGIC;
28
                Start :  IN  STD_LOGIC;
29
                CotinueStart :  IN  STD_LOGIC;
30
                ShutDown :  IN  STD_LOGIC;
31
                Res :  IN  STD_LOGIC;
32
                SDI :  IN  STD_LOGIC;
33
                SCK :  OUT  STD_LOGIC;
34
                nSS :  OUT  STD_LOGIC;
35
                ready :  OUT  STD_LOGIC;
36
                SDO :  OUT  STD_LOGIC_VECTOR(9 DOWNTO 0)
37
        );
38
END RecvMasterTb;
39
 
40
LIBRARY lib;
41
USE lib.all;
42
ARCHITECTURE bdf_type OF RecvMasterTb IS
43
 
44
COMPONENT adcrecv
45
GENERIC (DataLen : INTEGER;
46
                        DataOffset : INTEGER;
47
                        QuietLen : INTEGER;
48
                        SDLen : INTEGER;
49
                        SDMax : INTEGER;
50
                        SPILen : INTEGER
51
                        );
52
        PORT(CLK : IN STD_LOGIC;
53
                 Start : IN STD_LOGIC;
54
                 ContinueStart : IN STD_LOGIC;
55
                 ShutDown : IN STD_LOGIC;
56
                 reset : IN STD_LOGIC;
57
                 SDI : IN STD_LOGIC;
58
                 SCK : OUT STD_LOGIC;
59
                 nSS : OUT STD_LOGIC;
60
                 Ready : OUT STD_LOGIC;
61
                 Shift : OUT STD_LOGIC;
62
                 DQ : OUT STD_LOGIC_VECTOR(9 DOWNTO 0)
63
        );
64
END COMPONENT;
65
 
66
 
67
 
68
BEGIN
69
 
70
 
71
 
72
b2v_inst : adcrecv
73
GENERIC MAP(DataLen => 10,
74
                        DataOffset => 6,
75
                        QuietLen => 1,
76
                        SDLen => 1,
77
                        SDMax => 10,
78
                        SPILen => 16
79
                        )
80
PORT MAP(CLK => CLC,
81
                 Start => Start,
82
                 ContinueStart => CotinueStart,
83
                 ShutDown => ShutDown,
84
                 reset => Res,
85
                 SDI => SDI,
86
                 SCK => SCK,
87
                 nSS => nSS,
88
                 Ready => ready,
89
                 DQ => SDO);
90
 
91
 
92
END bdf_type;

powered by: WebSVN 2.1.0

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