diff options
| author | Rodrigo Alejandro Melo <rmelo@inti.gob.ar> | 2017-11-16 13:02:29 -0300 |
|---|---|---|
| committer | Rodrigo Alejandro Melo <rmelo@inti.gob.ar> | 2017-11-16 13:02:29 -0300 |
| commit | 3d45f0322dca3cb60b818cb28afc077b6e6d29b3 (patch) | |
| tree | 6ec53c903a1dab87c0c59830a95aaa9d39a81967 /examples | |
| parent | 6252447712e65498ba7b37d03f4832ecb645db44 (diff) | |
| download | vhdl2vl-3d45f0322dca3cb60b818cb28afc077b6e6d29b3.tar.gz vhdl2vl-3d45f0322dca3cb60b818cb28afc077b6e6d29b3.zip | |
Added (partial) support for to_integer function
Added an example that fail to todo.vhd.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/todo.vhd | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/todo.vhd b/examples/todo.vhd index 2a5b239..a5695ee 100644 --- a/examples/todo.vhd +++ b/examples/todo.vhd @@ -10,15 +10,19 @@ entity todo is end todo; architecture rtl of todo is + type mem_type is array (0 to 255) of integer; + signal mem : mem_type; + signal int : integer; signal uns : unsigned(7 downto 0); begin --************************************************************************** -- Wrong translations --************************************************************************** - -- to_integer is unsupported (is not removed) + -- to_integer not always work (probably the same with conv_integer) uns <= "10101001"; - int <= to_integer(uns); + int <= mem(to_integer(uns)); -- here work + int <= to_integer(uns); -- here fail --************************************************************************** -- Translations which abort with syntax error (uncomment to test) --************************************************************************** |

