Commit 047aa746 authored by Dimitris Lampridis's avatar Dimitris Lampridis

[hdl] replace edge detectors in gc_sync_ffs with gc_edge_detect.

The only reason for this is to improve readability and reduce the usage of gc_posedge/gc_negedge, in
case we want to deprecate them in the near future.
Signed-off-by: Dimitris Lampridis's avatarDimitris Lampridis <dimitris.lampridis@cern.ch>
parent 45b6ec6b
......@@ -54,9 +54,10 @@ begin
d_i => data_i,
q_o => sync);
cmp_gc_posedge : entity work.gc_posedge
cmp_gc_posedge : entity work.gc_edge_detect
generic map (
g_ASYNC_RST => TRUE,
g_PULSE_EDGE => "positive",
g_CLOCK_EDGE => g_SYNC_EDGE)
port map (
clk_i => clk_i,
......@@ -64,9 +65,10 @@ begin
data_i => sync,
pulse_o => ppulse);
cmp_gc_negedge : entity work.gc_negedge
cmp_gc_negedge : entity work.gc_edge_detect
generic map (
g_ASYNC_RST => TRUE,
g_PULSE_EDGE => "negative",
g_CLOCK_EDGE => g_SYNC_EDGE)
port map (
clk_i => clk_i,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment