From 3bbdbaf0c5789baf38f6e4c57e4c669f1d8e03a0 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 19 Jun 2021 02:54:31 +0200 Subject: Added testcase for integer literals. --- testsuite/pyunit/SimpleEntity.vhdl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'testsuite/pyunit/SimpleEntity.vhdl') diff --git a/testsuite/pyunit/SimpleEntity.vhdl b/testsuite/pyunit/SimpleEntity.vhdl index 12068c06d..90d68fd83 100644 --- a/testsuite/pyunit/SimpleEntity.vhdl +++ b/testsuite/pyunit/SimpleEntity.vhdl @@ -15,11 +15,14 @@ entity entity_1 is end entity entity_1; architecture behav of entity_1 is + signal Reset_n : std_logic; begin + Reset_n <= not Reset; + process(Clock) begin if rising_edge(Clock) then - if Reset = '1' then + if Reset_n = '0' then Q <= (others => '0'); else Q <= std_logic_vector(unsigned(Q) + 1); @@ -27,11 +30,3 @@ begin end if; end process; end architecture behav; - -package package_1 is - constant ghdl : float := (3, 5, 0 => 5, 3 => 4, name => 10); -- 2.3; -end package; - -package body package_1 is - constant ghdl : float := (1); -- => 2, 4 => 5, others => 10); -- .5; -end package body; -- cgit v1.2.3