B
BlueDoze
Guest
Hi,
I want to know the always statement that's corresponding to this VHDL
process statement.
process ( reset, async_set, clock )
begin
if ( reset = '1' ) then
output <= input1 ;
elsif ( async_set = '1' ) then
output <= input2 ;
elsif ( clock = '1' and clock'event) then
if sync_set = '1' then
output <= input3 ;
else
output <= input;
end if;
end if;
end process;
I have tried
always @(posedge clock or posedge reset or posedge async_set)
but I had problems with the negative edge of the clock so I added.
always @(posedge clock or negedge clock or posedge reset or posedge
async_set)
but again I found problems with other negative edges.
Appreciate your help.
Bluedoze
I want to know the always statement that's corresponding to this VHDL
process statement.
process ( reset, async_set, clock )
begin
if ( reset = '1' ) then
output <= input1 ;
elsif ( async_set = '1' ) then
output <= input2 ;
elsif ( clock = '1' and clock'event) then
if sync_set = '1' then
output <= input3 ;
else
output <= input;
end if;
end if;
end process;
I have tried
always @(posedge clock or posedge reset or posedge async_set)
but I had problems with the negative edge of the clock so I added.
always @(posedge clock or negedge clock or posedge reset or posedge
async_set)
but again I found problems with other negative edges.
Appreciate your help.
Bluedoze