w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
rlink_cext_vhpi.vhd
Go to the documentation of this file.
1-- $Id: rlink_cext_vhpi.vhd 1181 2019-07-08 17:00:50Z mueller $
2-- SPDX-License-Identifier: GPL-3.0-or-later
3-- Copyright 2007-2010 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4--
5------------------------------------------------------------------------------
6-- Package Name: rlink_cext_vhpi
7-- Description: VHDL procedural interface: VHDL declaration side
8--
9-- Dependencies: -
10-- Tool versions: ghdl 0.18-0.31
11-- Revision History:
12-- Date Rev Version Comment
13-- 2010-12-29 351 1.1 rename vhpi_rriext->rlink_cext_vhpi; new rbv3 names
14-- 2007-08-26 76 1.0 Initial version
15------------------------------------------------------------------------------
16
18
19 impure function rlink_cext_getbyte (
20 clk : integer) -- clock cycle
21 return integer;
22 attribute foreign of rlink_cext_getbyte :
23 function is "VHPIDIRECT rlink_cext_getbyte";
24
25 impure function rlink_cext_putbyte (
26 dat : integer) -- data byte
27 return integer;
28 attribute foreign of rlink_cext_putbyte :
29 function is "VHPIDIRECT rlink_cext_putbyte";
30
31end package rlink_cext_vhpi;
32
33package body rlink_cext_vhpi is
34
35 impure function rlink_cext_getbyte (
36 clk : integer) -- clock cycle
37 return integer is
38 begin
39 report "rlink_cext_getbyte not vhpi'ed" severity failure;
40 end rlink_cext_getbyte;
41
42 impure function rlink_cext_putbyte (
43 dat : integer) -- data byte
44 return integer is
45 begin
46 report "rlink_cext_getbyte not vhpi'ed" severity failure;
47 end rlink_cext_putbyte;
48
49end package body rlink_cext_vhpi;