simulatorfaultycircuitasynchronous.java~

来自「Java遗传算法库」· JAVA~ 代码 · 共 42 行

JAVA~
42
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?