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

Subversion Repositories gecko4

[/] [gecko4/] [trunk/] [GECKO4com/] [spartan200_an/] [vhdl/] [scpi_if/] [scpi_if-entity.vhdl] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 ktt1
--------------------------------------------------------------------------------
2
--            _   _            __   ____                                      --
3
--           / / | |          / _| |  __|                                     --
4
--           | |_| |  _   _  / /   | |_                                       --
5
--           |  _  | | | | | | |   |  _|                                      --
6
--           | | | | | |_| | \ \_  | |__                                      --
7
--           |_| |_| \_____|  \__| |____| microLab                            --
8
--                                                                            --
9
--           Bern University of Applied Sciences (BFH)                        --
10
--           Quellgasse 21                                                    --
11
--           Room HG 4.33                                                     --
12
--           2501 Biel/Bienne                                                 --
13
--           Switzerland                                                      --
14
--                                                                            --
15
--           http://www.microlab.ch                                           --
16
--------------------------------------------------------------------------------
17
--   GECKO4com
18
--  
19
--   2010/2011 Dr. Theo Kluter
20
--  
21
--   This VHDL code is free code: you can redistribute it and/or modify
22
--   it under the terms of the GNU General Public License as published by
23
--   the Free Software Foundation, either version 3 of the License, or
24
--   (at your option) any later version.
25
--  
26
--   This VHDL code is distributed in the hope that it will be useful,
27
--   but WITHOUT ANY WARRANTY; without even the implied warranty of
28
--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
--   GNU General Public License for more details. 
30
--   You should have received a copy of the GNU General Public License
31
--   along with these sources.  If not, see <http://www.gnu.org/licenses/>.
32
--
33
 
34
LIBRARY ieee;
35
USE ieee.std_logic_1164.all;
36
USE ieee.std_logic_arith.all;
37
 
38
-- The vendor commands are directly send to the main FPGA without
39
-- interpretation of the ieee488.2 controler
40
 
41
ENTITY SCPI_INTERFACE IS
42
   PORT ( clock            : IN  std_logic;
43
          reset            : IN  std_logic;
44
 
45
          -- The command interface
46
          transparent_mode : IN  std_logic;
47
          start_command    : OUT std_logic;
48
          command_id       : OUT std_logic_vector( 6 DOWNTO 0 );
49
          cmd_gen_respons  : OUT std_logic;
50
          command_done     : IN  std_logic;
51
          command_error    : IN  std_logic;
52
          unknown_command  : OUT std_logic;
53
          slave_pop        : IN  std_logic;
54
 
55
          -- USBTMC fifo interface
56
          pop              : OUT std_logic;
57
          pop_data         : IN  std_logic_vector( 7 DOWNTO 0 );
58
          pop_empty        : IN  std_logic;
59
          pop_last         : IN  std_logic);
60
END SCPI_INTERFACE;
61
 
62
      -- Command ID <=> Command
63
      --     0x02   <=> "*CLS"
64
      --     0x06   <=> "*ESE"
65
      --     0x07   <=> "*ESE?"
66
      --     0x08   <=> "*ESR?"
67
      --     0x09   <=> "*IDN?"
68
      --     0x0A   <=> "*IST?"
69
      --     0x0B   <=> "*OPC"
70
      --     0x0C   <=> "*OPC?"
71
      --     0x0D   <=> "*PUD"
72
      --     0x0E   <=> "*PUD?"
73
      --     0x0F   <=> "*RST"
74
      --     0x10   <=> "*SRE"
75
      --     0x11   <=> "*SRE?"
76
      --     0x12   <=> "*STB?"
77
      --     0x14   <=> "*TST?"
78
      --     0x15   <=> "*WAI"
79
      --     0x16   <=> "BITFLASH"
80
      --     0x17   <=> "BITFLASH?"
81
      --     0x18   <=> "BOARD?"
82
      --     0x19   <=> "CONFIG"
83
      --     0x1A   <=> "ERASE"
84
      --     0x1B   <=> "FIFO"
85
      --     0x1C   <=> "FIFO?"
86
      --     0x1D   <=> "FPGA"
87
      --     0x1E   <=> "FPGA?"
88
      --     0x23   <=> "HEXSWITCH"
89
      --     0x24   <=> "HEXSWITCH?"
90
      --     0x25   <=> "IDENTIFY"
91
      --     0x33   <=> "TRANS"
92
      --     0x3A   <=> "USERRESET"
93
      --     0x3B   <=> "VGA:BGCOL"
94
      --     0x3C   <=> "VGA:CLEAR"
95
      --     0x3D   <=> "VGA:CURSOR"
96
      --     0x3E   <=> "VGA:CURSOR?"
97
      --     0x3F   <=> "VGA:FGCOL"
98
      --     0x40   <=> "VGA:PUTSTR"

powered by: WebSVN 2.1.0

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