diff options
| author | Pepijn de Vos <pepijndevos@gmail.com> | 2019-07-21 12:11:35 +0200 |
|---|---|---|
| committer | tgingold <tgingold@users.noreply.github.com> | 2019-07-21 12:11:35 +0200 |
| commit | 44a19c532ebbfeb212d6e60ceb280526eb88f078 (patch) | |
| tree | 545b69817428e9049883f4e3735a900d7997e9f2 /src/synth/netlists-utils.ads | |
| parent | e5f5c65f8471071ca52462d81d0cadc2d5c16950 (diff) | |
| download | ghdl-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.ads | 3 |
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. |
