synthese problems

Discussion in 'VHDL' started by Olaf Petzold, Aug 27, 2005.

  1. Olaf Petzold

    Olaf Petzold Guest

    Hi,

    I've got the following error:
    parse error, unexpected WHEN, expecting SEMICOLON

    on synthesis of the this peace of code:

    entity trigger is
    port(
    clk : in std_logic;
    ...
    );
    end entity;

    architecture behavioral of trigger is

    signal m_pattern : std_logic := '0';
    signal m_edge : std_logic := '0';

    begin

    ...

    trig_proc: process(clk)
    begin
    if rising_edge(clk) then
    match <= '1' -- HERE
    when (m_pattern ='1') and (m_edge = '1')
    else '0';
    end if;

    end process;

    end behavioral;

    Is this not allowed inside a process, only inside archtitectures??

    Thanks and regards,
    Olaf
     
    Olaf Petzold, Aug 27, 2005
    #1
    1. Advertising

  2. Olaf Petzold wrote:


    > if rising_edge(clk) then
    > match <= '1' -- HERE
    > when (m_pattern ='1') and (m_edge = '1')
    > else '0';
    > end if;


    > Is this not allowed inside a process, only inside archtitectures??


    Use *if/then/else* inside a process.
    Use *when* outside.
    That's just the way it is.

    -- Mike Treseler
     
    Mike Treseler, Aug 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pierre-Louis
    Replies:
    8
    Views:
    1,017
    Bob Efram
    Oct 17, 2003
  2. Roman
    Replies:
    2
    Views:
    6,423
    vipinlal
    Mar 4, 2010
  3. Olaf Petzold

    Synthese of to_integer

    Olaf Petzold, Nov 23, 2005, in forum: VHDL
    Replies:
    11
    Views:
    4,887
    Olaf Petzold
    Dec 2, 2005
  4. Susan Baker
    Replies:
    2
    Views:
    858
    kelvSYC
    Jun 26, 2005
  5. Shelly

    Problems, problems for newbie

    Shelly, Sep 2, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    2,244
    Shelly
    Sep 3, 2007
Loading...

Share This Page