diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-12-14 10:48:43 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-12-14 10:48:43 +0100 |
commit | 78b3dc964653d9274cc32b13809ade15b4f0fc3a (patch) | |
tree | 069b58e4a993ca4fa9465ab59e046784bde29f7e /src/synth/netlists-utils.ads | |
parent | 5cce9685b754ee28ccd8c39abfcbc8a514f637f7 (diff) | |
download | ghdl-78b3dc964653d9274cc32b13809ade15b4f0fc3a.tar.gz ghdl-78b3dc964653d9274cc32b13809ade15b4f0fc3a.tar.bz2 ghdl-78b3dc964653d9274cc32b13809ade15b4f0fc3a.zip |
synth: add Get_Input_Instance.
Diffstat (limited to 'src/synth/netlists-utils.ads')
-rw-r--r-- | src/synth/netlists-utils.ads | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/synth/netlists-utils.ads b/src/synth/netlists-utils.ads index b8ccb3e93..f8749749f 100644 --- a/src/synth/netlists-utils.ads +++ b/src/synth/netlists-utils.ads @@ -42,8 +42,13 @@ package Netlists.Utils is function Get_Input_Width (M : Module; I : Port_Idx) return Width; function Get_Output_Width (M : Module; I : Port_Idx) return Width; + -- Return the net (driver) connected to input IDX of INSTANCE. function Get_Input_Net (Inst : Instance; Idx : Port_Idx) return Net; + -- Return the instance that drives input IDX of INST. + function Get_Input_Instance (Inst : Instance; Idx : Port_Idx) + return Instance; + -- Return True iff ID describe a constant. function Is_Const_Module (Id : Module_Id) return Boolean; function Is_Const_Net (N : Net) return Boolean; |