edu.byu.ece.edif.util.export.jhdl.test
Class JHDLTests

java.lang.Object
  extended by edu.byu.ece.edif.util.export.jhdl.test.JHDLTests

public class JHDLTests
extends java.lang.Object

This testbench tests the JHDL support within the EDIF tool.

Version:
$Id:JHDLTests.java 144 2008-04-02 01:40:38Z jamesfcarroll $
Author:
Nathan Rollins

Field Summary
private static int _parseErrors
          Number of EDIF Parsing Errors.
private static int _parseNum
          Number of EDIF files attempted to parse
private  java.lang.String _srcDir
          Location of the EDIF test file directories
private static int _wrapperErrors
          Number of EDIF wrapper creation Errors.
 
Constructor Summary
JHDLTests()
          Default and only Constructor
 
Method Summary
protected  void _parseEdifFile(java.lang.String edifFileName, java.lang.String technologyName, java.util.Collection dirs, java.util.Set subFiles)
          This function parses and builds a JHDL wrapper for the given EDIF file.
protected  void _parseEdifFileCommandline(java.io.File currDir, java.lang.String technologyName, java.util.Collection dirs, java.util.Set subFiles)
          This function parses and builds a JHDL wrapper for the given EDIF file.
protected  int _runCommand(java.lang.String cmd, java.io.File currDir, boolean printOutput)
           
protected  void _runSpecificTests()
           
protected  void _runTestsAll(java.lang.String parent, java.lang.String fileName, java.lang.String technologyName, java.util.Set subfiles)
          This function recursively calls itself when #fileName refers to a directory (unless the directory is the CVS directory).
protected  void _simulateDesign(java.io.File currDir, java.lang.String technologyName)
           
static void main(java.lang.String[] args)
           
static void printFile(java.lang.String filename, java.lang.String data)
          This static method will write a dotty file with the given file text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parseErrors

private static int _parseErrors
Number of EDIF Parsing Errors.


_parseNum

private static int _parseNum
Number of EDIF files attempted to parse


_wrapperErrors

private static int _wrapperErrors
Number of EDIF wrapper creation Errors.


_srcDir

private java.lang.String _srcDir
Location of the EDIF test file directories

Constructor Detail

JHDLTests

public JHDLTests()
Default and only Constructor

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

_parseEdifFile

protected void _parseEdifFile(java.lang.String edifFileName,
                              java.lang.String technologyName,
                              java.util.Collection dirs,
                              java.util.Set subFiles)
This function parses and builds a JHDL wrapper for the given EDIF file.

Parameters:
edifFileName -
technologyName -
dirs -
subFiles -

_parseEdifFileCommandline

protected void _parseEdifFileCommandline(java.io.File currDir,
                                         java.lang.String technologyName,
                                         java.util.Collection dirs,
                                         java.util.Set subFiles)
This function parses and builds a JHDL wrapper for the given EDIF file.

Parameters:
edifFileName -
technologyName -
dirs -
subFiles -

_runCommand

protected int _runCommand(java.lang.String cmd,
                          java.io.File currDir,
                          boolean printOutput)

_simulateDesign

protected void _simulateDesign(java.io.File currDir,
                               java.lang.String technologyName)

_runSpecificTests

protected void _runSpecificTests()
                          throws java.io.IOException
Throws:
java.io.IOException

printFile

public static void printFile(java.lang.String filename,
                             java.lang.String data)
This static method will write a dotty file with the given file text.

Parameters:
filename - - the name of the file to create
data - - the file text body

_runTestsAll

protected void _runTestsAll(java.lang.String parent,
                            java.lang.String fileName,
                            java.lang.String technologyName,
                            java.util.Set subfiles)
                     throws java.io.IOException
This function recursively calls itself when #fileName refers to a directory (unless the directory is the CVS directory). If $fileName refers to an EDIF file the file is parsed.

Parameters:
parent - - directory of the file or directory
fileName - - the file or directory
Throws:
java.io.IOException