diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-05-09 08:44:08 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-05-09 11:22:00 +0200 |
commit | b13b9e9fa26121a68d74589ef35ea5ed45316cd9 (patch) | |
tree | 569cb14e705ccada21fef2bfed6dfc497a47e3f1 /src/synth/netlists-builders.ads | |
parent | 06f3682dc85a965c9d3ccee26d0457e6df2869d6 (diff) | |
download | ghdl-b13b9e9fa26121a68d74589ef35ea5ed45316cd9.tar.gz ghdl-b13b9e9fa26121a68d74589ef35ea5ed45316cd9.tar.bz2 ghdl-b13b9e9fa26121a68d74589ef35ea5ed45316cd9.zip |
netlists-builders: add Build_Pmux.
Diffstat (limited to 'src/synth/netlists-builders.ads')
-rw-r--r-- | src/synth/netlists-builders.ads | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/synth/netlists-builders.ads b/src/synth/netlists-builders.ads index dc45caf04..6a1c0fb82 100644 --- a/src/synth/netlists-builders.ads +++ b/src/synth/netlists-builders.ads @@ -96,6 +96,12 @@ package Netlists.Builders is Sel : Net; I0, I1, I2, I3 : Net) return Net; + -- The width of SEL gives the number of inputs (+ 2). + -- The width of DEF (default value) gives the width of the output. + function Build_Pmux (Ctxt : Context_Acc; + Sel : Net; + Def : Net) return Net; + -- Build: I0 & I1 [ & I2 [ & I3 ]] function Build_Concat2 (Ctxt : Context_Acc; I0, I1 : Net) return Net; function Build_Concat3 (Ctxt : Context_Acc; I0, I1, I2 : Net) return Net; @@ -232,6 +238,7 @@ private M_Negedge : Module; M_Mux2 : Module; M_Mux4 : Module; + M_Pmux : Module; M_Nop : Module; M_Output : Module; M_Ioutput : Module; |