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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [leftshiftregister14.vbe] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
-- File Name    : leftshiftregister14.vbe
2
-- Description  : Shift register left
3
-- Author       : Mas Adit
4
-- Date         : 29 Agustus 2001
5
 
6
ENTITY leftshiftregister14 IS
7
PORT(
8
  p     : IN BIT_VECTOR (16 DOWNTO 0);
9
  q     : IN BIT;
10
  r     : OUT BIT_VECTOR (33 DOWNTO 0);
11
  vdd   : IN  BIT;
12
  vss   : IN  BIT
13
);
14
END leftshiftregister14;
15
 
16
ARCHITECTURE VBE OF leftshiftregister14 IS
17
  SIGNAL s : BIT_VECTOR (33 DOWNTO 0);
18
 
19
BEGIN
20
  ASSERT ((vdd and not (vss)) = '1')
21
  REPORT "power supply is missing on leftshiftregister14"
22
  SEVERITY WARNING;
23
 
24
  s <= ('0' & '0' & '0' & p & '0' & '0' & '0' & '0' & '0' & '0'
25
        & '0' & '0' & '0' & '0' & '0' & '0' & '0' & '0') WHEN (q = "1")
26
        ELSE "0000000000000000000000000000000000";
27
  r <= s;
28
END VBE;

powered by: WebSVN 2.1.0

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