public class CoreMicroInstructionMemory extends BasicCoreComponent
{
- private final ReadWriteEnd data;
- private final ReadEnd address;
- private final MicroInstructionMemory memory;
-
+ private final ReadWriteEnd data;
+ private final ReadEnd address;
+ private final MicroInstructionMemory memory;
public CoreMicroInstructionMemory(Timeline timeline, int processTime, MicroInstructionMemory memory, ReadWriteEnd data, ReadEnd address)
{
@Override
protected TimelineEventHandler compute()
{
- if(!address.hasNumericValue())
+ if (!address.hasNumericValue())
{
- return e -> data.feedSignals(Bit.U.toVector(data.width()));//TODO don't always feed U, but decide to feed X or U.
+ return e -> data.feedSignals(Bit.U.toVector(data.width()));// TODO don't always feed U, but decide to feed X or U.
}
long addressed = address.getUnsignedValue();
BitVector storedData = memory.getCell(addressed).toBitVector();