Package org.pshdl.interpreter

Examples of org.pshdl.interpreter.VariableInformation


    } else {
      this.report = new ConsoleReporter();
    }
    final VariableInformation[] variables = em.variables;
    for (int i = 0; i < variables.length; i++) {
      final VariableInformation v = variables[i];
      varIdx.put(v.name, i);
      if (!"#null".equals(v.name)) {
        varListA.add(getIndexOf(a, v));
        varListB.add(getIndexOf(b, v));
      } else {
View Full Code Here


  public void checkAllVarsLong() {
    final VariableInformation[] variables = em.variables;
    boolean hasDiff = false;
    for (int i = 0; i < variables.length; i++) {
      final VariableInformation v = variables[i];
      if (!"#null".equals(v.name)) {
        if (v.dimensions.length == 0) {
          final long aVal = a.getOutputLong(varListA.get(i));
          final long bVal = b.getOutputLong(varListB.get(i));
          if (aVal != bVal) {
View Full Code Here

      writeStringArray(ModelTypes.annotations, model.annotations);
    }
    final Map<String, Integer> varIdx = new LinkedHashMap<>();
    final VariableInformation[] variables = model.variables;
    for (int i = 0; i < variables.length; i++) {
      final VariableInformation vi = variables[i];
      varIdx.put(vi.name, i);
      writeVariable(vi);
    }
    for (final InternalInformation ii : model.internals) {
      writeInternal(ii, varIdx.get(ii.info.name));
View Full Code Here

        annotations = ex.readStringArray();
        break;
      }
      ex.close();
    }
    final VariableInformation res = new VariableInformation(dir, name, width, type, isRegister, isClock, isReset, annotations, dimensions);
    return res;
  }
View Full Code Here

TOP

Related Classes of org.pshdl.interpreter.VariableInformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.