📄 simulatorfaultycircuitasynchronous.java~
字号:
/* * SimulatorFaultyCircuitAsynchronous.java * * Created on 30 January 2004, 11:29 */package es.pj.circuits.fpgaft;import es.pj.circuits.CircuitMapping;/** Elements are not refreshed synchronously. So each is refreshed individually on its own. * This means chains of elements refreshed forwards will have a gate delay less than if they * were refreshed backwards. To make this more fair, elements could be refreshed in a random * order. Refreshing elements on their own has the benefit of avoiding unrealistic behaviour * for loops of elements with the same delay. * * @author mmg20 */public class SimulatorFaultyCircuitAsynchronous extends SimulatorFaultyCircuit { /** Creates a new instance of SimulatorFaultyCircuitAsynchronous */ public SimulatorFaultyCircuitAsynchronous(CircuitMapping mapping) { super( mapping ); } protected void updateAll( SimulatorFaultyDelayLE[] elements ) { // Update state for( int vl = 0; vl < elements.length; vl++ ) { elements[ vl ].sampleInputs(); elements[ vl ].refreshOutput(); } } public String toString() { String rv = "Asynchronous refresh Simulator Faulty Circuit with Superclass: " + super; return rv; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -