w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
rutil.vhd
Go to the documentation of this file.
1-- $Id: rutil.vhd 1181 2019-07-08 17:00:50Z mueller $
2-- SPDX-License-Identifier: GPL-3.0-or-later
3-- Copyright 2017- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4--
5------------------------------------------------------------------------------
6-- Package Name: rutil
7-- Description: Miscellaneous helper functions
8--
9-- Dependencies: -
10-- Tool versions: ise 14.7; viv 2017.1; ghdl 0.34
11-- Revision History:
12-- Date Rev Version Comment
13-- 2017-06-25 44 1.0 Initial version
14------------------------------------------------------------------------------
15
16library ieee;
17use ieee.std_logic_1164.all;
18
19package rutil is
20 function imin (left, right: integer) return integer;
21end package rutil;
22
23package body rutil is
24 function imin (left, right: integer) return integer is
25 begin
26 if left < right then
27 return left;
28 else
29 return right;
30 end if;
31 end imin;
32end package body rutil;
Definition: rutil.vhd:19
integer iminleft,right,left,right,
Definition: rutil.vhd:20