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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [rtl/] [vlib/] [rlink/] [tb/] [rlink_cext_vhpi.vhd] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 wfjm
-- $Id: rlink_cext_vhpi.vhd 389 2011-07-07 21:59:00Z mueller $
2 2 wfjm
--
3 9 wfjm
-- Copyright 2007-2010 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 2 wfjm
--
5
-- This program is free software; you may redistribute and/or modify it under
6
-- the terms of the GNU General Public License as published by the Free
7
-- Software Foundation, either version 2, or at your option any later version.
8
--
9
-- This program is distributed in the hope that it will be useful, but
10
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
-- for complete details.
13
-- 
14
------------------------------------------------------------------------------
15 9 wfjm
-- Package Name:   rlink_cext_vhpi
16 2 wfjm
-- Description:    VHDL procedural interface: VHDL declaration side
17
--
18
-- Dependencies:   -
19 9 wfjm
-- Tool versions:  xst 8.1, 8.2, 9.1, 9.2, 12.1; ghdl 0.18-0.29
20 2 wfjm
-- Revision History: 
21
-- Date         Rev Version  Comment
22 9 wfjm
-- 2010-12-29   351   1.1    rename vhpi_rriext->rlink_cext_vhpi; new rbv3 names
23 2 wfjm
-- 2007-08-26    76   1.0    Initial version 
24
------------------------------------------------------------------------------
25
 
26 9 wfjm
package rlink_cext_vhpi is
27 2 wfjm
 
28 9 wfjm
  impure function rlink_cext_getbyte (
29 2 wfjm
    clk : integer)                      -- clock cycle
30
    return integer;
31 9 wfjm
  attribute foreign of rlink_cext_getbyte :
32
    function is "VHPIDIRECT rlink_cext_getbyte";
33 2 wfjm
 
34 9 wfjm
  impure function rlink_cext_putbyte (
35 2 wfjm
    dat : integer)                      -- data byte
36
    return integer;
37 9 wfjm
  attribute foreign of rlink_cext_putbyte :
38
    function is "VHPIDIRECT rlink_cext_putbyte";
39 2 wfjm
 
40 12 wfjm
end package rlink_cext_vhpi;
41 2 wfjm
 
42 9 wfjm
package body rlink_cext_vhpi is
43 2 wfjm
 
44 9 wfjm
  impure function rlink_cext_getbyte (
45 2 wfjm
    clk : integer)                      -- clock cycle
46
    return integer is
47
  begin
48 9 wfjm
    report "rlink_cext_getbyte not vhpi'ed" severity failure;
49
  end rlink_cext_getbyte;
50 2 wfjm
 
51 9 wfjm
  impure function rlink_cext_putbyte (
52 2 wfjm
    dat : integer)                      -- data byte
53
    return integer is
54
  begin
55 9 wfjm
    report "rlink_cext_getbyte not vhpi'ed" severity failure;
56
  end rlink_cext_putbyte;
57 2 wfjm
 
58 12 wfjm
end package body rlink_cext_vhpi;

powered by: WebSVN 2.1.0

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