Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - What does this AHDL code mean?

 
Thread Tools Search this Thread
Old 06-22-2005, 04:28 PM   #1
Default What does this AHDL code mean?


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



methi
  Reply With Quote
Old 06-23-2005, 08:24 PM   #2
info_
 
Posts: n/a
Default Re: What does this AHDL code mean?
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



info_
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Access HTML elements in code behind??? nedums_b Software 1 02-07-2008 07:15 PM
Circumvent Region Code hufaunder@yahoo.com DVD Video 11 01-29-2007 09:51 PM
Probelm For Runing This Code farhad13841384 Software 0 08-03-2006 07:32 AM
.avi files giving region code error Craig Cameron DVD Video 2 03-07-2006 02:49 PM
Change region code and PAL to NTSC? Aloke Prasad DVD Video 0 02-26-2004 01:54 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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