FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2005, 09:14 AM
Olaf Petzold
Guest
 
Posts: n/a
Default synthese problems

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
Reply With Quote
  #2 (permalink)  
Old 08-28-2005, 12:22 AM
Mike Treseler
Guest
 
Posts: n/a
Default Re: synthese problems

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mixed Language synthese Microblaze Philipp FPGA 0 02-07-2005 06:50 PM
How to fix this synthese warnings? Philipp FPGA 3 02-06-2005 11:53 PM
EDK 6.2 Synthese Error Philipp Grabher FPGA 0 01-31-2005 11:39 AM
VHDL Wait-Statement after Synthese Roman VHDL 1 10-28-2004 05:01 PM
synthese: date and time automatically placed in a register?? Pierre-Louis VHDL 8 10-17-2003 07:56 PM


All times are GMT +1. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved