Package edu.gatech.cs2110.circuitsim.api
Annotation Type SubcircuitRegister
-
@Retention(RUNTIME) public @interface SubcircuitRegister
InstructsCircuitSimExtensionto find and inject aMockRegisterfor a Register component into aMockRegisterfield in a test class.When you annotate a
MockRegisterfield in a test class with this,CircuitSimExtensionwill useSubcircuit.mockOnlyRegister(int)to replace the only register in the file with a "ghost register." SeeMockRegisterfor details.- See Also:
MockRegister,Subcircuit.mockOnlyRegister(int)
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description intbitsDesired bitsize of a matching register.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanonlyRegisterWhether to match the only register in the subcircuit.
-