I was wondering if it is possible to have a process run on multiple
clock edges in VHDL similar to the following verilog code:
always @(posedge clk1 or posedge clk2)
:
:
:
end
TIA
Anoop
> always @(posedge clk1 or posedge clk2)
Yes, you can:
process
begin
wait until rising_edge( clk1 ) or rising_edge( clk2 );
:
:
end process;
Just as in the Verilog example, this process is not synthesizable.
Hope this helps,
Paul
--
Paul Menchini | me...@mench.com | "Non si vive se non il
OrCAD | www.orcad.com | tempo che si ama."
P.O. Box 71767 | 919-479-1670[v] | --Claude Adrien Helvetius
Durham, NC 27722-1767 | 919-479-1671[f] |
rise_fall_example : process (RESET, CLOCK)
begin
if (RESET = '1') then
OUTPUT <= '0';
elsif (CLOCK'event) and (CLOCK = '1') then -- Rising Edge
OUTPUT <= INPUT1;
elsif (CLOCK'event) and (CLOCK = '0') then -- Falling Edge
OUTPUT <= INPUT2;
end if;
end process rise_fall_example;
In article <7cqtqt$75j$1...@bcarh8ab.ca.nortel.com>,
Anoop Nannra <"anannra"@no-spamnortelnetworks.com(remove no-spam)> wrote:
> Hi all,
>
> I was wondering if it is possible to have a process run on multiple
> clock edges in VHDL similar to the following verilog code:
>
> always @(posedge clk1 or posedge clk2)
> :
> :
> :
> end
>
> TIA
> Anoop
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Regards
Aravind Navada K