-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add semantic check that ports are signal class
- Loading branch information
Showing
3 changed files
with
69 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,39 @@ | ||
package interfaces is | ||
|
||
component comp1 is | ||
port ( | ||
signal p1 : integer; -- OK | ||
p2 : integer -- OK | ||
); | ||
end component; | ||
|
||
component comp2 is | ||
port (variable p : integer); -- Error | ||
end component; | ||
|
||
component comp3 is | ||
port (constant p : integer); -- Error | ||
end component; | ||
|
||
component comp4 is | ||
port (file p : text); -- Error | ||
end component; | ||
|
||
component comp5 is | ||
generic (constant p1 : integer; -- OK | ||
p2 : integer);-- OK | ||
end component; | ||
|
||
component comp5 is | ||
generic (signal p : integer); -- Error | ||
end component; | ||
|
||
component comp5 is | ||
generic (variable p : integer); -- Error | ||
end component; | ||
|
||
component comp5 is | ||
generic (file p : text); -- Error | ||
end component; | ||
|
||
end package interfaces; |
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