-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* comb components in clk and reset insertion * update changelog
- Loading branch information
1 parent
e6ac677
commit 4339375
Showing
5 changed files
with
99 additions
and
24 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## Unreleased | ||
- Don't require `@clk` and `@reset` ports in `comb` components | ||
|
||
|
||
## 0.4.0 | ||
|
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
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,21 @@ | ||
import "primitives/core.futil"; | ||
comb component layout_hw0() -> (flat_port_addr0: 4) { | ||
cells { | ||
add_0 = std_add(4); | ||
} | ||
wires { | ||
flat_port_addr0 = add_0.out; | ||
add_0.left = 4'd1; | ||
add_0.right = 4'd2; | ||
} | ||
} | ||
component main(@clk clk: 1, @go go: 1, @reset reset: 1) -> (out: 32, @done done: 1) { | ||
cells { | ||
r = std_reg(32); | ||
} | ||
wires { | ||
out = r.out; | ||
r.clk = clk; | ||
} | ||
control {} | ||
} |
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,22 @@ | ||
// -p well-formed -p clk-insertion | ||
import "primitives/core.futil"; | ||
comb component layout_hw0() -> (flat_port_addr0: 4) { | ||
cells { | ||
add_0 = std_add(4); | ||
} | ||
wires { | ||
flat_port_addr0 = add_0.out; | ||
add_0.left = 4'd1; | ||
add_0.right = 4'd2; | ||
} | ||
} | ||
|
||
component main(@clk clk: 1) -> (out: 32) { | ||
cells { | ||
r = std_reg(32); | ||
} | ||
wires { | ||
out = r.out; | ||
} | ||
control {} | ||
} |