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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [main control/] [d_latch.vbe] - Blame information for rev 11

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

Line No. Rev Author Line
1 6 marta
--      File Name    : d_latch.vbe                                     --
2
--      Modul Name   : D latch with asynchronized clr                  --
3
--      Purpose      : To be Syntesized by SCMAP                       --
4
--      Author       : Martadinata A                                   --
5
--      Date         : February 18, 2001                               --
6
 
7
entity d_latch is
8
port(
9
  d       : in    bit;
10
  en      : in    bit;
11
  clr     : in    bit;
12
  q       : inout bit;
13
  vdd     : in    bit;
14
  vss     : in    bit
15
  );
16
end d_latch;
17
 
18
architecture vbe of d_latch is
19
  signal nq  : bit;
20
 
21
begin
22
  assert ((vdd and not (vss)) = '1')
23
    report "power supply is missing on d_latch"
24
    severity warning;
25
 
26
  nq <= not ((en and d) or q);
27
   q <= not ((en and not d) or nq or clr);
28
 
29
END ;

powered by: WebSVN 2.1.0

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