Commit 441c015
MoritzScherer
[Moore] Add builtins for simulation time measurements (llvm#8970)
This PR adds builtins for `$time`, `$stime` and `$realtime` in the
`moore` dialect. All these builtins correspond to System Verilog system
tasks and only slightly differ in their functionality.
To represent the return value of `$time`, this PR adds `TwoValueI64`,
which represents a 64-Bit integer used to express the simulation time
value in.1 parent a2d0301 commit 441c015
File tree
3 files changed
+40
-0
lines changed- include/circt/Dialect/Moore
- lib/Conversion/ImportVerilog
- test/Conversion/ImportVerilog
3 files changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
1764 | 1783 | | |
1765 | 1784 | | |
1766 | 1785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1594 | 1594 | | |
1595 | 1595 | | |
1596 | 1596 | | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1597 | 1606 | | |
1598 | 1607 | | |
1599 | 1608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
0 commit comments