Use an Xilinx Netlist Format (XNF) file as a MACRO block in Foundation Schematic Drawing tool

The following steps can be used to incorporate an XNF file into a schematic.

  1. Assume that you are working on a project name foo
    Create an xnf file, say pak.xnf.
     LCANET,5
     PROG,
     PART,
     SYM,Z0,OR,SCHNM=OR2,LIBVER=2.0.0
      PIN,O,O,Z0
      PIN,I0,I,X8
      PIN,I1,I,X3
     END
     EXT,Z0,O,,
     EXT,X8,I,,
     EXT,X3,I,,
     EOF
    

    Be sure the xnf file is deposited in your active\projects\foo subdirectory.
  2. Go to Foundation Schematic Editor (drawing tool). choose Hierarchy->Create Macro Symbol from Netlist..
    In the Import Netlist window that appears, select the Xilinx .XNF format
    Grab the file pak.xnf
    Watch that the schematic tool will create a MACRO symbol for this XNF file in your component library. Grab the MACRO, place it on the drawing sheet, add the buffers, pads, and there you have it:


The CMPE225 Web:
Copyright 2001; Department of Computer Engineering, University of California, Santa Cruz.
martine@cse.ucsc.edu