![]() |
|
|
|||||||
![]() |
VHDL - What does this AHDL code mean? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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_ |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |