Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
language:langs:spec [2022/06/23 17:59] rajit created |
language:langs:spec [2024/12/19 07:18] (current) rajit [Exclusive directives] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== The spec sublanguage ===== | ===== The spec sublanguage ===== | ||
- | The '' | + | The '' |
+ | <code act> | ||
+ | spec { | ||
+ | directive_name (sig1, sig2, ...) | ||
+ | directive_name (sig1, sig2, ...) | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | ==== Exclusive directives ==== | ||
+ | |||
+ | There are four exclusive directives, two for exclusive high and two for exclusive low. The directive | ||
+ | |||
+ | <code act> | ||
+ | spec { | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | states that the signals '' | ||
+ | |||
+ | To simplify modeling of arbiters that cannot be modeled purely at the digital level of abstraction, | ||
+ | |||
+ | <code act> | ||
+ | spec { | ||
+ | mk_exclhi(a, | ||
+ | } | ||
+ | </ | ||
+ | This //forces// the signals '' | ||
+ | |||
+ | There are symmetric variations ('' | ||
+ | |||
+ | ==== Simulation directives ==== | ||
+ | |||
+ | The directive '' | ||
+ | |||
+ | ==== Timing directives ==== | ||
+ | |||
+ | There are two types of timing directives: constraints, | ||
+ | |||
+ | === Tick specifiers === | ||
+ | |||
+ | Asynchronous circuits oscillate, and each oscillation can be viewed as an iteration of the circuit. For [[asic: | ||
+ | <code act> | ||
+ | spec { | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | This directive says that '' | ||
+ | |||
+ | === Timing constraints === | ||
+ | |||
+ | Timing constraints in ACT are specified using [[asic: | ||
+ | <code act> | ||
+ | spec { | ||
+ | timing a+ : b- < c+ | ||
+ | } | ||
+ | </ | ||
+ | states that after '' | ||
+ | |||
+ | <code act> | ||
+ | spec { | ||
+ | timing a+ : b- < [15] c+ | ||
+ | } | ||
+ | </ | ||
+ | This specifies that the timing fork has a margin of 15 delay units. The conversion from delay units to actual time uses the '' | ||
+ | |||
+ | If a circuit violates a timing fork, that is an error that is flagged by the ACT simulation tools. During the implementation flow, these timing forks have to be checked. If they are violated, then the circuit must be adjusted to ensure that they are satisfied. There are two ways to satisfy a fork: (i) make the slow path faster; or (ii) make the fast path slower. Adding delays to a fast path is one way to satisfy a timing fork, but that may result in slowing down the circuit. Hence, the default optimizations will attempt to make the slow path faster. | ||
+ | |||
+ | In some cases, a user may want the circuit synthesis and optimization tools to insert the appropriately sized delay line to make the fast path slower. In other words, rather than manually specifying the delay line, a timing fork can be specified where the implementation flow should just add the appropriately sized, technology-dependent delay line. In such cases, a timing fork can be specified as follows: | ||
+ | <code act> | ||
+ | spec { | ||
+ | timing a+ : b- << [15] c+ | ||
+ | } | ||
+ | </ | ||
+ | This has the same meaning as the earlier fork, except that the tools are provided with a hint that says that it is okay to add delays to correct any violations of this fork. | ||
+ | |||
+ | |||
+ | |||
+ | Finally, timing forks may relate transitions from adjacent iterations. | ||
+ | |||
+ | <code act> | ||
+ | spec { | ||
+ | timing a+ : b*- < c+ | ||
+ | } | ||
+ | </ | ||
+ | The '' | ||
+ | |||
+ | When computing conservative approximations to timing graphs, ACT may add extra edges to the timing graph that are in fact not present in the true timing graph for the system. This can occur, for example, when a gate is modified to incorporate extra signals to simplify the circuit implementation but the new input has no bearing on event causality in the asynchronous circuit. If the automated timing graph construction algorithm includes such edges, they can be explicitly deleted using the following directive: | ||
+ | <code act> | ||
+ | spec { | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | This directive says that the '' |