mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
Added some comments
This commit is contained in:
parent
c9fd159e3e
commit
d606093884
@ -5,6 +5,12 @@ import de.neemann.digital.core.element.PinDescription;
|
||||
import de.neemann.digital.lang.Lang;
|
||||
|
||||
/**
|
||||
* Represents all signal values in the simulator.
|
||||
* There are some setters to set the value. A value can be set to high z state.
|
||||
* Only a complete bus can be set to high z state. It is not possible to set
|
||||
* a single bit of a bus to high z state.
|
||||
* Observers can observe this value to be notified if the value changes.
|
||||
*
|
||||
* @author hneemann
|
||||
*/
|
||||
public class ObservableValue extends Observable implements PinDescription {
|
||||
|
@ -12,7 +12,9 @@ import de.neemann.digital.core.element.Keys;
|
||||
import static de.neemann.digital.core.element.PinInfo.input;
|
||||
|
||||
/**
|
||||
* The Delay
|
||||
* The Delay.
|
||||
* Allows to delay a signal propagation by a certain amount of time.
|
||||
* This time is given in units of gate delays.
|
||||
*
|
||||
* @author hneemann
|
||||
*/
|
||||
|
@ -9,7 +9,8 @@ import java.io.File;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* This observer is added to all outputs connected together
|
||||
* This observer represents the common output value of several outputs connected together.
|
||||
* Handles also the switches.
|
||||
*/
|
||||
public final class CommonBusValue extends ObservableValue implements NodeInterface {
|
||||
private final BusModelStateObserver obs;
|
||||
|
@ -45,7 +45,7 @@ public class FileScanner {
|
||||
System.err.println("----> error in: " + e.f);
|
||||
e.e.printStackTrace();
|
||||
}
|
||||
throw new Exception("errors testing files");
|
||||
throw new Exception("errors testing files: " + errors.size());
|
||||
}
|
||||
|
||||
private int scanIntern(File path) throws Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user