Examples of TraceException


Examples of com.zylin.zpu.simulator.exceptions.TraceException

                    e.printStackTrace();
                }
            }
        } catch (IOException e)
        {
            throw new TraceException(e);
        }
       
    }
View Full Code Here

Examples of com.zylin.zpu.simulator.exceptions.TraceException

    private long parseInt(String string2) throws TraceException
    {
        String string = string2;
        if (!string.startsWith("0x"))
        {
            throw new TraceException(new Exception("Trace file pasing error line " + getFile().getLineNumber()));
        }
        return Long.parseLong(string.substring(2), 16);
    }
View Full Code Here

Examples of com.zylin.zpu.simulator.exceptions.TraceException

    public void instructionEvent() throws GDBServerException
    {
      if (metEnd)
      {
        metEnd=false;
        throw new TraceException();
      }
        if (resync&&trigger)
        {
            if (match())
            {
                /* we have to wait for the first instruction in the trace to be matched */
              System.out.println("First matching instruction found!");
                resync=false;
            }
        }

        if (!resync&&trigger)
        {
         
            boolean m=match();
            recordCurrent();
            current=(current+1)%trace.length;

            if (!m)
            {
                System.err.println("Trace file mismatch");
                dumpTraceBack();
                System.err.print("Expected by Java simulator: \n");
                simulator.printState(this);
                System.err.print("Actual from ModelSim: ");
                System.err.println(line);
                // we now have to ignore this match.
                ignore=true;
                throw new TraceException();
            }
        } else
        {
            recordCurrent();
            current=(current+1)%trace.length;
View Full Code Here

Examples of utils.tracer.TraceException

         
          trace.readCurrentState( channelClassName , channelState );
          if ( commChannel != null )
            commChannel.setCommunicationChannelState( channelState );
          else
            throw new TraceException( "El robot no tiene un canal de comunicaciones establecido." );


          // Obtiene el estado de la red neuronal.
          if ( netState == null )
            netState = new NeuralNetworkState();
         
          trace.readCurrentState( netClassName , netState );
          if ( neuralNet != null )
            neuralNet.setNeuralNetworkState( netState );
          else
            throw new TraceException( "El robot no tiene una red neuronal establecida." );
         
        }
        catch (TraceException e)
        {
          Logger.error( e.getMessage() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.