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

Reply

VHDL - Synopsys clock edge question

 
Thread Tools Search this Thread
Old 06-27-2005, 08:25 PM   #1
Default Synopsys clock edge question


I am having an issue with synthesizing the code below using Synopsys
design analyzer.

---
clkproc_12: process(clk)
begin

for index in 0 to num_stg12_sad_regs-1 loop
if (rising_edge(clk)) then
if (rst = '1' or stg12_rst(index) = '1') then
stg12_sad_reg((index+1)*out_size-1 downto
index*out_size) <= "000000000000";
elsif ((en and stg12_en(index)) = '1') then
stg12_sad_reg((index+1)*out_size-1 downto index*out_size) <=
stg1_add_out;
end if;
end if;
end loop;

end process;
--

The error that I get is:

Error: This use of clock edge specification not supported in routine PE
line 219 in file 'xxx/pe.vhd' (HDL-109)

Line 219 is the "rising_edge" line. I am not sure what is wrong with
this clock specification, is it because of it being nested in a for
loop?

Any help would be appreciated.



blarg
  Reply With Quote
Old 06-27-2005, 08:37 PM   #2
Ralf Hildebrandt
 
Posts: n/a
Default Re: Synopsys clock edge question
blarg wrote:
> I am having an issue with synthesizing the code below using Synopsys
> design analyzer.
>
> ---
> clkproc_12: process(clk)
> begin
>
> for index in 0 to num_stg12_sad_regs-1 loop
> if (rising_edge(clk)) then


Whoops - what is this?

You can eighter
* have an outside for-generate statement having inside a process, to infer a
number of similar ressources (described by the process)
XOR
* have a process beeing edge-sensitve and inside the edge-sensitve if-clause a for-loop
doing some stuff

In other words: Edge-sensitive statements are not allowed inside a for-loop by your
synthesis tool - and I guess by any other synthesis tool.


Ralf


Ralf Hildebrandt
  Reply With Quote
Old 06-27-2005, 08:56 PM   #3
blarg
 
Posts: n/a
Default Re: Synopsys clock edge question
Thanks, Ralf. for-generate worked.



blarg
  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
Dazzle Box... swt458 Hardware 2 01-15-2008 06:06 AM
New Releases: Revelations, The Librarian & My Left Foot: Updated complete downloadable R1 DVD DB & Info lists Doug MacLean DVD Video 0 05-17-2005 06:57 AM
Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good God DVD Video 3 04-25-2005 04:19 PM
Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good Filthy Mcnasty DVD Video 0 04-25-2005 04:29 AM
Hollywood Detective - The Buried Clock David Marsh DVD Video 1 09-27-2004 11:26 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