next up previous
Next: Modo Batch Up: Simulação Previous: WaveForms

Scripts em Java

...
Editor editor = new Editor();

....
// load the design
        editor.doOpenDesign("./DemoFifoALU.hds", true);

....

// Add some probes
        String signalNames[] = {"ReadyA", "InputA", "AckA" , "ReadyB", "InputB", "AckB" ,"ReadyY", "OutputY", "AckY" , "Opcode"}; 


        for (int i=0; i < signalNames.length; i++) {
            editor.addProbeToSignal(signalNames[i]);

        }

editor.doShowWaves();

...

// set some stimulus
        Ipin ReadyA = (Ipin) design.getComponent("ReadyA");
        
	InputA.assign("00_H",1.0);
        ReadyA.assign("1",2.0);



Ricardo Ferreira 2004-02-16