URL
https://opencores.org/ocsvn/idea/idea/trunk
Subversion Repositories idea
[/] [idea/] [trunk/] [behavioral/] [main control/] [d_latch.vbe] - Rev 11
Go to most recent revision | Compare with Previous | Blame | View Log
-- File Name : d_latch.vbe --
-- Modul Name : D latch with asynchronized clr --
-- Purpose : To be Syntesized by SCMAP --
-- Author : Martadinata A --
-- Date : February 18, 2001 --
entity d_latch is
port(
d : in bit;
en : in bit;
clr : in bit;
q : inout bit;
vdd : in bit;
vss : in bit
);
end d_latch;
architecture vbe of d_latch is
signal nq : bit;
begin
assert ((vdd and not (vss)) = '1')
report "power supply is missing on d_latch"
severity warning;
nq <= not ((en and d) or q);
q <= not ((en and not d) or nq or clr);
END ;
Go to most recent revision | Compare with Previous | Blame | View Log