aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-utils.ads
diff options
context:
space:
mode:
authorPepijn de Vos <pepijndevos@gmail.com>2019-07-21 12:11:35 +0200
committertgingold <tgingold@users.noreply.github.com>2019-07-21 12:11:35 +0200
commit44a19c532ebbfeb212d6e60ceb280526eb88f078 (patch)
tree545b69817428e9049883f4e3735a900d7997e9f2 /src/synth/netlists-utils.ads
parente5f5c65f8471071ca52462d81d0cadc2d5c16950 (diff)
downloadghdl-44a19c532ebbfeb212d6e60ceb280526eb88f078.tar.gz
ghdl-44a19c532ebbfeb212d6e60ceb280526eb88f078.tar.bz2
ghdl-44a19c532ebbfeb212d6e60ceb280526eb88f078.zip
add port width utility function for yosys (#876)
Diffstat (limited to 'src/synth/netlists-utils.ads')
-rw-r--r--src/synth/netlists-utils.ads3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/netlists-utils.ads b/src/synth/netlists-utils.ads
index 4a017ec3c..bd8bd3e1c 100644
--- a/src/synth/netlists-utils.ads
+++ b/src/synth/netlists-utils.ads
@@ -31,6 +31,9 @@ package Netlists.Utils is
function Get_Input_Name (M : Module; I : Port_Idx) return Sname;
function Get_Output_Name (M : Module; I : Port_Idx) return Sname;
+ function Get_Input_Width (M : Module; I : Port_Idx) return Width;
+ function Get_Output_Width (M : Module; I : Port_Idx) return Width;
+
function Get_Input_Net (Inst : Instance; Idx : Port_Idx) return Net;
-- Return True iff ID describe a constant.