From 78b3dc964653d9274cc32b13809ade15b4f0fc3a Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 14 Dec 2019 10:48:43 +0100 Subject: synth: add Get_Input_Instance. --- src/synth/netlists-utils.ads | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/synth/netlists-utils.ads') 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; -- cgit v1.2.3