![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
Thanks, Ralf. for-generate worked.
blarg |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |