byucc.jhdl.netlisters
Class VHDLNetlister

java.lang.Object
  extended bybyucc.jhdl.netlisters.Netlister
      extended bybyucc.jhdl.netlisters.VHDLNetlister

public class VHDLNetlister
extends Netlister

Platform-independent VHDL netlister. Creates a structural VHDL netlist of the JHDL circuit in a single file. Does not currently do anything with attributes. This is a pretty thorough revamp of the original netlister. It traverses the cell list more often, but is much easier to follow in case modifications need to be made.

Author:
Brett H. Williams 8-10-2000

Field Summary
 
Fields inherited from class byucc.jhdl.netlisters.Netlister
flat_netlist, jout, printTimestamp, topcell
 
Constructor Summary
VHDLNetlister()
           
 
Method Summary
protected  void expand(Cell currentCell, NetlistWriter output)
          Given a cell, returns the text to go in the output file for cell expansion.
 void footer(Cell c, NetlistWriter output)
          Instantiates footer from Netlister, no conclusion needed
 java.lang.String generateFilename(Cell c)
          Generates a netlist filename.
 void header(Cell c, NetlistWriter output)
          Instantiates header from Netlister, prints preliminary part of netlist
 void netlist(Cell c, java.lang.String file)
          Create a structural vhdl netlist.
 
Methods inherited from class byucc.jhdl.netlisters.Netlister
getFlatNetlistFlag, getPrintTimestamp, netlist, netlist, netlist, netlist, setFlatNetlistFlag, setPrintTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VHDLNetlister

public VHDLNetlister()
Method Detail

generateFilename

public java.lang.String generateFilename(Cell c)
Generates a netlist filename.

Specified by:
generateFilename in class Netlister
Parameters:
c - the Cell to be netlisted.
Returns:
the generated filename

netlist

public void netlist(Cell c,
                    java.lang.String file)
Create a structural vhdl netlist.

Overrides:
netlist in class Netlister
Parameters:
c - top-level Cell to netlist.
file - netlist filename

expand

protected void expand(Cell currentCell,
                      NetlistWriter output)
Description copied from class: Netlister
Given a cell, returns the text to go in the output file for cell expansion. Can be used recursively to expand an entire tree.

Specified by:
expand in class Netlister
Parameters:
currentCell - the cell to be expanded
output - the NetlistWriter to print the netlist to

header

public void header(Cell c,
                   NetlistWriter output)
Instantiates header from Netlister, prints preliminary part of netlist

Specified by:
header in class Netlister
Parameters:
c - the top-level cell
output - the output file

footer

public void footer(Cell c,
                   NetlistWriter output)
Instantiates footer from Netlister, no conclusion needed

Specified by:
footer in class Netlister
Parameters:
c - the top-level cell
output - the output file


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.