-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add left and right bound properties to wire. Add some tests
- Loading branch information
1 parent
a854903
commit 1af9fa6
Showing
9 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
library IEEE; | ||
use IEEE.STD_LOGIC_1164.ALL; | ||
use IEEE.NUMERIC_STD.ALL; | ||
|
||
entity work is | ||
Port ( | ||
-- 32 bit range is -2,147,483,648 to 2,147,483,647 | ||
-- 64 bit range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | ||
a : in INTEGER range -4 to 10147483749; | ||
b : out INTEGER range -4 to 10147483748 | ||
); | ||
end entity work; | ||
|
||
architecture Behavioral of work is | ||
begin | ||
process(a) | ||
begin | ||
b <= a; | ||
end process; | ||
end architecture Behavioral; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
verific -vhdl2019 large_integer_range.vhdl | ||
verific -import work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
library IEEE; | ||
use IEEE.STD_LOGIC_1164.ALL; | ||
use IEEE.NUMERIC_STD.ALL; | ||
|
||
entity work is | ||
Port ( | ||
a : in INTEGER range -10 to 15; | ||
b : out INTEGER range -9 to 15 | ||
); | ||
end entity work; | ||
|
||
architecture Behavioral of work is | ||
begin | ||
process(a) | ||
begin | ||
b <= a; | ||
end process; | ||
end architecture Behavioral; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
verific -vhdl2019 negative_integer_range.vhdl | ||
verific -import work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
library IEEE; | ||
use IEEE.STD_LOGIC_1164.ALL; | ||
use IEEE.NUMERIC_STD.ALL; | ||
|
||
entity work is | ||
Port ( | ||
a : in INTEGER range 1 to 15; | ||
b : out INTEGER range 2 to 15 | ||
); | ||
end entity work; | ||
|
||
architecture Behavioral of work is | ||
begin | ||
process(a) | ||
begin | ||
b <= a; | ||
end process; | ||
end architecture Behavioral; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
verific -vhdl2019 positive_integer_range.vhdl | ||
verific -import work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
library IEEE; | ||
use IEEE.STD_LOGIC_1164.ALL; | ||
use IEEE.NUMERIC_STD.ALL; | ||
|
||
entity work is | ||
Port ( | ||
a : in INTEGER range 0 to 15; | ||
b : out INTEGER range 1 to 15 | ||
); | ||
end entity work; | ||
|
||
architecture Behavioral of work is | ||
begin | ||
process(a) | ||
begin | ||
b <= a; | ||
end process; | ||
end architecture Behavioral; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
verific -vhdl2019 zero_to_positive_integer_range.vhdl | ||
verific -import work |