LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cores > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: "Radwin Zagala" <rzagala@s...>
    Date: Wed, 23 Apr 2003 10:37:48 +0800
    Subject: RE: [oc] VHDL Process statement
    Top

    Hi!
    
    It will just get the previous value. In hardware, I think you'll have a
    flip-flop with the D input tied to "Vcc", enable to "enable of
    flip-flop", signal1 to "Q of flip-flop", txclk to "clk" and rst_n to
    "reset".
    
    Radwin
    
    > -----Original Message-----
    > From: owner-cores@o... 
    > [mailto:owner-cores@o...] On Behalf Of twebel@g...
    > Sent: Wednesday, April 23, 2003 6:14 AM
    > To: cores@o...
    > Subject: [oc] VHDL Process statement
    > 
    > 
    > Hi,
    > i read some vhdl code of the opencore HDLC and now i have
    > a question regarding process stements and how the hardware looks like.
    > 
    > ..
    > proc1: process (txclk, rst_n)
    > variable state :STD_LOGIC
    > 
    > if rst_n = ´0´ then
    >   state    := '0';
    >   signal1 := '0';
    >  elseif txclk'event and txclk = '1' then
    >   if enable = '1' then
    >       state    := '1';
    >       signal1 := '1';
    >   end if;
    >  end if;
    > end if;
    > 
    > What values have state, signal1  
    > if the enable signal switches to '0' ?
    > There is no elseif statement for that !!
    > Thanks.
    > 
    > 
    > 
    > 
    > 
    
    
    
    
    

    ReferenceAuthor
    [oc] VHDL Process statementTwebel

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.