diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-08 07:49:53 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-11 06:37:26 +0200 |
commit | 67333b39047b444ea93f1efcabf7ea7b0371a972 (patch) | |
tree | f999cda95e5f42d745f149f29ce2b06a3e148304 /src/synth/synth-context.adb | |
parent | 2b3a1bb316317453d4e40bc3a650b4ed07eee7a8 (diff) | |
download | ghdl-67333b39047b444ea93f1efcabf7ea7b0371a972.tar.gz ghdl-67333b39047b444ea93f1efcabf7ea7b0371a972.tar.bz2 ghdl-67333b39047b444ea93f1efcabf7ea7b0371a972.zip |
synth: handle alias (WIP, read only).
Diffstat (limited to 'src/synth/synth-context.adb')
-rw-r--r-- | src/synth/synth-context.adb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synth/synth-context.adb b/src/synth/synth-context.adb index 48a0114b3..d7af882b5 100644 --- a/src/synth/synth-context.adb +++ b/src/synth/synth-context.adb @@ -436,6 +436,14 @@ package body Synth.Context is Build (Build_Context, C, Res); return Res; end; + when Value_Alias => + declare + Res : Net; + begin + Res := Get_Current_Value (Build_Context, Val.A_Wid); + return Build_Extract (Build_Context, Res, Val.A_Off, + Get_Type_Width (Val.Typ)); + end; when others => raise Internal_Error; end case; |