Skip to content

Commit

Permalink
[major] Disallow implicit truncation in connect
Browse files Browse the repository at this point in the history
darthscsi authored and seldridge committed Jun 15, 2023

Verified

This commit was signed with the committer’s verified signature.
kareefardi Kareem Farid
1 parent 52b32e5 commit 242c088
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions revision-history.yaml
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ revisionHistory:
construction of hardware literals.
- Change string-encoded integers to radix-encoded integers.
- Remove legacy connect (`<=`) and invalidate (`is invalid`) syntax
- Make connect disallow implicit truncation (again).
abi:
- Initial ABI description.
# Information about the old versions. This should be static.
4 changes: 1 addition & 3 deletions spec.md
Original file line number Diff line number Diff line change
@@ -1103,9 +1103,7 @@ In order for a connection to be legal the following conditions must hold:

Connect statements from a narrower ground type component to a wider ground type
component will have its value automatically sign-extended or zero-extended to
the larger bit width. Connect statements from a wider ground type component to a
narrower ground type component will have its value automatically truncated to
fit the smaller bit width. The behavior of connect statements between two
the larger bit width. The behavior of connect statements between two
circuit components with aggregate types is defined by the connection algorithm
in [@sec:the-connection-algorithm].

0 comments on commit 242c088

Please sign in to comment.