diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-02-16 17:12:39 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-02-16 17:12:39 +0100 |
commit | f0857455d654fd3a3b9de1bbca52c7bd6fcb5033 (patch) | |
tree | 4f0adaa32c08b6e69d55d85b355ba21268947039 /src/synth | |
parent | c0bf4d10a71599b8d35ca13fd5a062fae6863c2b (diff) | |
download | ghdl-f0857455d654fd3a3b9de1bbca52c7bd6fcb5033.tar.gz ghdl-f0857455d654fd3a3b9de1bbca52c7bd6fcb5033.tar.bz2 ghdl-f0857455d654fd3a3b9de1bbca52c7bd6fcb5033.zip |
synth: reverse bit order for indexed names.
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/synth-expr.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 80f76a1c4..b44024367 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -487,9 +487,9 @@ package body Synth.Expr is case Rng.Dir is when Iir_To => - return Bit_Extract (Pfx, Uns32 (Idx - Rng.Left)); + return Bit_Extract (Pfx, Uns32 (Rng.Right - Idx)); when Iir_Downto => - return Bit_Extract (Pfx, Uns32 (Rng.Left - Idx)); + return Bit_Extract (Pfx, Uns32 (Idx - Rng.Right)); end case; end Synth_Indexed_Name; |