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

Subversion Repositories vhdl_wb_tb

[/] [vhdl_wb_tb/] [trunk/] [rtl/] [vhdl/] [packages/] [convert_pkg.vhd] - Diff between revs 26 and 27

Show entire file | Details | Blame | View Log

Rev 26 Rev 27
Line 15... Line 15...
----                                                              ---- 
----                                                              ---- 
---------------------------------------------------------------------- 
---------------------------------------------------------------------- 
----    SVN information
----    SVN information
----
----
----      $URL: file:///svn/vhdl_wb_tb/vhdl_wb_tb/trunk/rtl/vhdl/packages/convert_pkg.vhd $
----      $URL: file:///svn/vhdl_wb_tb/vhdl_wb_tb/trunk/rtl/vhdl/packages/convert_pkg.vhd $
---- $Revision: 26 $
---- $Revision: 27 $
----     $Date: 2018-08-03 13:07:46 +0200 (Fri, 03 Aug 2018) $
----     $Date: 2019-09-21 17:20:11 +0200 (Sat, 21 Sep 2019) $
----   $Author: sinx $
----   $Author: sinx $
----       $Id: convert_pkg.vhd 26 2018-08-03 11:07:46Z sinx $
----       $Id: convert_pkg.vhd 27 2019-09-21 15:20:11Z sinx $
---------------------------------------------------------------------- 
---------------------------------------------------------------------- 
----                                                              ---- 
----                                                              ---- 
---- Copyright (C) 2018 Authors and OPENCORES.ORG                 ---- 
---- Copyright (C) 2018 Authors and OPENCORES.ORG                 ---- 
----                                                              ---- 
----                                                              ---- 
---- This source file may be used and distributed without         ---- 
---- This source file may be used and distributed without         ---- 
Line 127... Line 127...
    RETURN c;
    RETURN c;
  END to_char;
  END to_char;
  ----------------------------------------------------------------------
  ----------------------------------------------------------------------
  FUNCTION to_string(int : integer;
  FUNCTION to_string(int : integer;
                     base : integer range 1 to 16 := 16;
                     base : integer range 1 to 16 := 16;
                     length : integer range 1 to 32 := 0
                     length : integer range 0 to 32 := 0
                     ) RETURN string IS
                     ) RETURN string IS
 
 
    VARIABLE temp    : string(1 TO 1000);
    VARIABLE temp    : string(1 TO 1000);
    VARIABLE num     : integer;
    VARIABLE num     : integer;
    VARIABLE abs_int : integer;
    VARIABLE abs_int : integer;

powered by: WebSVN 2.1.0

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