public void WriteEnable2_OnEdgeLow() { if (ChipSelectInput2 == SignalState.LOW) { ushort writeAddress = AddressInput2.SampleValue(); byte data = DataInput2.SampleValue(); cells[writeAddress] = data; } }
public void ReadEnable2_OnEdgeLow() { if (ChipSelectInput2 == SignalState.LOW) { ushort readAddress = AddressInput2.SampleValue(); byte data = cells[readAddress]; DataInput2.SetValue(data); } }