Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > What does this AHDL code mean?

Reply
Thread Tools

What does this AHDL code mean?

 
 
methi
Guest
Posts: n/a
 
      06-22-2005
Hi,

I have some questions regarding the following piece of code...

In the AHDL code, the following variable is declared as below:

HDET_REG : DFF;

Its been used in the code as follows:

HDET_REG.CLK = DIGRESET;
HDET_REG.D = VCC;
HDET.REG.CLRN = !HDET;

My question is that....how does this DFF work

How does CLRN affect the output HDET_REG.Q

Any help is greatly appreciated.

Thank you,

Methi

 
Reply With Quote
 
 
 
 
info_
Guest
Posts: n/a
 
      06-23-2005
methi wrote:

> Hi,
>
> I have some questions regarding the following piece of code...
>
> In the AHDL code, the following variable is declared as below:
>
> HDET_REG : DFF;
>
> Its been used in the code as follows:
>
> HDET_REG.CLK = DIGRESET;
> HDET_REG.D = VCC;
> HDET.REG.CLRN = !HDET;


Probable typo :
HDET_REG.CLRN = !HDET;

Sounds like :

process (DigReset, Hdet)
begin
if Hdet ='1' then
HDET_Reg <= '0';
elsif rising_edge(DigReset) then
HDET_Reg <= '1';
end if;
end if;
end process;


Asynchronous rising edge detector.
Bad practice. Probably from a very small PLD, old design.

Bert Cuzeau

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie strugling with a lookup (look-up) table in VHDL (or AHDL) Shannon VHDL 6 05-13-2007 11:25 AM
[AHDL] news1.ustronie.pw.edu.pl VHDL 3 05-02-2006 06:47 PM
Need help with AHDL methi VHDL 0 06-22-2005 03:01 PM
AHDL graphic State Diagram and adding my own "type" magik VHDL 2 06-09-2005 03:25 PM
AHDL problems Pratik VHDL 1 05-06-2004 05:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57