Package edu.gatech.cs2110.circuitsim.api
Annotation Type SubcircuitRegister
-
@Retention(RUNTIME) public @interface SubcircuitRegister
InstructsCircuitSimExtension
to find and inject aMockRegister
for a Register component into aMockRegister
field in a test class.When you annotate a
MockRegister
field in a test class with this,CircuitSimExtension
will useSubcircuit.mockOnlyRegister(int)
to replace the only register in the file with a "ghost register." SeeMockRegister
for details.- See Also:
MockRegister
,Subcircuit.mockOnlyRegister(int)
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
bits
Desired bitsize of a matching register.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
onlyRegister
Whether to match the only register in the subcircuit.
-