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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [idea_machine/] [comp1.vbe] - Blame information for rev 6

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

Line No. Rev Author Line
1 6 marta
--   File Name    : comp1.vbe                                           --
2
--   Description  : The special comparator resulting                    --
3
--                  a 17-bit integer 2^16 or the lower 17-bit integers  --
4
--   Purpose      : To be used by ASIMUT and SCMAP                      --
5
--   Date         : Aug 22, 2001                                        --
6
--   Version      : 1.1                                                 --
7
--   Author       : Martadinata A.                                      --
8
--   Address      : VLSI RG, Dept. of Electrical Engineering            --
9
--                  ITB, Bandung, Indonesia                             --
10
--   E-mail       : marta@vlsi.itb.ac.id                                --
11
 
12
entity com1 is
13
port(
14
  kin     : in    bit_vector(15 downto 0);
15
  kout1   : out   bit_vector(16 downto 0);
16
  vdd     : in    bit;
17
  vss     : in    bit
18
  );
19
end com1;
20
 
21
architecture vbe of com1 is
22
signal sign : bit;
23
begin
24
  assert ((vdd and not (vss)) = '1')
25
    report "power supply is missing on com1"
26
    severity warning;
27
 
28
    sign <= '1' when (kin = "0000000000000000")
29
            else '0';
30
 
31
  kout1 <= sign & kin(15 downto 0);
32
end;

powered by: WebSVN 2.1.0

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