diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-22 09:12:14 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-22 09:12:14 +0100 |
commit | fef9f34b241b948139196d4039dcaa6cfd6a09d5 (patch) | |
tree | 545ca7c90fd10209995528493b4d0e2bbb9bab85 /src/synth/synth-values.ads | |
parent | 600d8fad841f92c600c01d18569e9e4c6f843d21 (diff) | |
download | ghdl-fef9f34b241b948139196d4039dcaa6cfd6a09d5.tar.gz ghdl-fef9f34b241b948139196d4039dcaa6cfd6a09d5.tar.bz2 ghdl-fef9f34b241b948139196d4039dcaa6cfd6a09d5.zip |
synth: do not crash immediately on access type.
Diffstat (limited to 'src/synth/synth-values.ads')
-rw-r--r-- | src/synth/synth-values.ads | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/synth/synth-values.ads b/src/synth/synth-values.ads index 1afe6d0a4..416f2729d 100644 --- a/src/synth/synth-values.ads +++ b/src/synth/synth-values.ads @@ -104,7 +104,12 @@ package Synth.Values is type Rec_El_Array_Acc is access Rec_El_Array; type Type_Type (Kind : Type_Kind) is record + -- False if the type is not synthesisable: is or contains access/file. + Is_Synth : Boolean; + + -- Number of bits for this type. W : Width; + case Kind is when Type_Bit | Type_Logic => |