head	1.1;
access;
symbols
	rel_3_2_rev_C:1.1
	rel_3_1_rev_C:1.1
	rel_3_0_rev_C:1.1
	rel_1_0_rev_A:1.1
	rel_2_0_rev_B:1.1;
locks; strict;
comment	@# @;


1.1
date	2005.02.08.20.41.33;	author arniml;	state Exp;
branches;
next	;


desc
@@


1.1
log
@initial check-in
@
text
@-------------------------------------------------------------------------------
--
-- SD/MMC Bootloader
--
-- $Id$
--
-------------------------------------------------------------------------------

library ieee;
use ieee.std_logic_1164.all;

package spi_boot_pack is

  function "=" (a : std_logic; b : integer) return boolean;

end spi_boot_pack;

package body spi_boot_pack is

  function "=" (a : std_logic; b : integer) return boolean is
    variable result_v : boolean;
  begin
    result_v := false;

    case a is
      when '0' =>
        if b = 0 then
          result_v := true;
        end if;

      when '1' =>
        if b = 1 then
          result_v := true;
        end if;

      when others =>
        null;

    end case;

    return result_v;
  end;

end spi_boot_pack;


-------------------------------------------------------------------------------
-- File History:
--
-- $Log$
-------------------------------------------------------------------------------
@
