aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-12-23 18:21:00 +0100
committerTristan Gingold <tgingold@free.fr>2019-12-23 18:21:00 +0100
commit886088c00b88fa2f5555bef3c79f6d2c7fdd3705 (patch)
tree6354e0b50028edc59e38f94284a6670ad145c348 /src/synth
parent78b3dc964653d9274cc32b13809ade15b4f0fc3a (diff)
downloadghdl-886088c00b88fa2f5555bef3c79f6d2c7fdd3705.tar.gz
ghdl-886088c00b88fa2f5555bef3c79f6d2c7fdd3705.tar.bz2
ghdl-886088c00b88fa2f5555bef3c79f6d2c7fdd3705.zip
synth: add minor comments.
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/netlists-folds.ads2
-rw-r--r--src/synth/netlists-gates.ads2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/netlists-folds.ads b/src/synth/netlists-folds.ads
index c789037b8..15a1f4ad6 100644
--- a/src/synth/netlists-folds.ads
+++ b/src/synth/netlists-folds.ads
@@ -58,7 +58,7 @@ package Netlists.Folds is
Loc : Location_Type := No_Location)
return Net;
--- Same as Build_Extract, but return I iff extract all the bits.
+ -- Same as Build_Extract, but return I iff extract all the bits.
function Build2_Extract
(Ctxt : Context_Acc; I : Net; Off, W : Width) return Net;
end Netlists.Folds;
diff --git a/src/synth/netlists-gates.ads b/src/synth/netlists-gates.ads
index 4a2a7ca33..1c1f08c22 100644
--- a/src/synth/netlists-gates.ads
+++ b/src/synth/netlists-gates.ads
@@ -159,12 +159,14 @@ package Netlists.Gates is
-- OUT := IN0[IN1+OFF+WD-1:IN1+OFF]
-- Input0: the memory
-- Input1: then index
+ -- Param0: offset
Id_Dyn_Extract : constant Module_Id := 69;
-- Like Insert but for dynamic values.
-- Input0: the memory
-- Input1: the value to insert
-- Input2: the index.
+ -- Param0: offset
-- T := IN0
-- T [IN2+OFF+WD-1:IN2+OFF] := IN1
-- OUT := T