aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-builders.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-15 07:35:24 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-15 07:36:01 +0200
commit15539c0af43cc63d99239e3b65d936955cde3226 (patch)
tree97e95dcd9f260a3a7acf2cf48dde556416a65ecd /src/synth/netlists-builders.ads
parentadd25cf10b6886bfea9b2392e08142cee1698fd0 (diff)
downloadghdl-15539c0af43cc63d99239e3b65d936955cde3226.tar.gz
ghdl-15539c0af43cc63d99239e3b65d936955cde3226.tar.bz2
ghdl-15539c0af43cc63d99239e3b65d936955cde3226.zip
synth: rework edge handling to properly support falling edge. Fix #1227
Diffstat (limited to 'src/synth/netlists-builders.ads')
-rw-r--r--src/synth/netlists-builders.ads6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/synth/netlists-builders.ads b/src/synth/netlists-builders.ads
index 5c67384be..a58f1bba9 100644
--- a/src/synth/netlists-builders.ads
+++ b/src/synth/netlists-builders.ads
@@ -86,7 +86,8 @@ package Netlists.Builders is
function Build_Const_Log (Ctxt : Context_Acc;
W : Width) return Instance;
- function Build_Edge (Ctxt : Context_Acc; Src : Net) return Net;
+ function Build_Posedge (Ctxt : Context_Acc; Src : Net) return Net;
+ function Build_Negedge (Ctxt : Context_Acc; Src : Net) return Net;
function Build_Mux2 (Ctxt : Context_Acc;
Sel : Net;
@@ -222,7 +223,8 @@ private
M_Const_Z : Module;
M_Const_Bit : Module;
M_Const_Log : Module;
- M_Edge : Module;
+ M_Posedge : Module;
+ M_Negedge : Module;
M_Mux2 : Module;
M_Mux4 : Module;
M_Nop : Module;