Homework_7dpp -- Generating dpp macro cells using Viewlogic/LAGER




Checked on 11/6/99 by D. Bouldin--works only on microsys0.


Command line procedure for hw7dpp:
axe vlogic/standard/vf/project.lst &
(I duplicated the last line and then changed the path to:
/v4/bouldin/hw7dpp/ Viewdraw)
mkdir hw7dpp
cd hw7dpp
cp /usr/cad/course/stdcell.ini viewdraw.ini
view_tools
Note: You may need to quit netscape before executing this next step.
viewdraw dpp_first &
xv & (dpp_first_sch.gif)
vsm dpp_first
cp /usr/cad/course/dpp_first.cmd .
cp /usr/cad/course/dpp_first.parval .
viewsim -vsm dpp_first -cmd dpp_first.cmd &
xv & (dpp_first_trace.gif)
custom_tools
vb2oct -s dpp_first
DMoct -m -s -p dpp_first.parval dpp_first dpp_first
cd layout
magic dpp_first
xv & (dpp_first_magic)
ext2irsim dpp_first
cp ../dpp_first.cmd dpp_first.cmds
axe dpp_first.cmds &
irsim scmos060.prm dpp_first.sim -dpp_first.cmds
xv & (dpp_first_irsim.gif)



The first tutorial walks you through the steps of setting up
your project directory, drawing a schematic and simulating it.

The finished schematic should look like the one shown below:



You can view/print a postscript version of the schematic:
ghostview /usr/cad/course/dpp_first.001p &

TUTORIAL FOR VIEWLOGIC's POWERVIEW

D. Bouldin   6/3/94

==========================================================

Before using Powerview for the first time, do the following:

  [101] sun1: /u4/user % mkdir vlogic
  
  [102] sun1: /u4/user % cd vlogic
 
  [103] sun1: /u4/user/vlogic % mkdir standard
  
  [104] sun1: /u4/user/vlogic % cd

==========================================================


Now, create a directory called "hw7dpp" and move to it:

  /u4/user % mkdir hw7dpp
  /u4/user % cd hw7dpp

Then, copy the viewdraw.ini file as shown below:

  /u4/user/hw7dpp % cp /usr/cad/course/stdcell.ini viewdraw.ini 


The viewdraw.ini file initializes the powerview window and establishes
the library search and access paths.    

Then, to invoke powerview, type:

  /u4/user/hw7dpp % powerview &

The host will respond with:

     [1] 2316
     /u4/user/hw7dpp% Powerview Cockpit - V1.2; Powerview 6.1 (120192)
     c Copyright 1985,1992 by Viewlogic Systems, Inc.
     Loading (45/45 modules) vframe.vs    

and the outline of a window will appear. Move the mouse to position
the window where you want it and click the left mouse button to place
the powerview cockpit window on the screen.   

Position the cursor over the menu item "Project" and click the left mouse 
button once.  A list of options will appear so position the cursor over 
the menu item "Create" and click the left mouse button once. The outline
of a new window will appear so click the left mouse button once to place
it on the screen.  Position the cursor in the window on the line labeled
"Project Pathname" and type a period.  Then, select "Accept".  The window
will disappear and the current directory will be set for your project.

-----------------------------------------------------------------------
------------------    VIEWDRAW (schematic)   --------------------------
-----------------------------------------------------------------------

Begin by using the mouse to position the cursor over the viewdraw icon.
Use the left-most mouse button (LMB) and double-click to open this tool.
The outline of a new window will appear so click the left mouse button 
once to place it on the screen.  Position the cursor in the window on 
the line labeled "Schematic Name" and type in "dpp_first" and select "Accept".

Two new windows will appear: one small one and one larger one.  To
get rid of the small one, position the cursor on the RED dot and 
click the LMB once.  Position the cursor over "Dismiss Children"
and click the LMB once. 

Next, you will want to add components to your schematic.  A list of
possible  components can be obtained by using the LMB to select from
the menu "add component".  A new window outline will appear.
In this window, select "itd" and click on "aoif2201.1".
The component listing window will disappear (or you can click on the upper
left-hand corner of this listing window) and your cursor will control
the outline of the component you just selected.  Position the cursor
so that you can place the component in the right portion of the schematic.
Press the middle mouse button (MMB) to finalize the placement.  

Repeat the  previous step for another component "nanf211.1".  In this case,
you will have to use the mouse to scroll through the listing until
you see "nanf211.1".  Repeat this step for component "norf211.1". 

Now, under "add component", select the "vb2oct_symbols" library and
then repeat the  previous step for components "fti.1", "fto.1" and "smv.1".

If you want to copy a component that is already in the schematic,  
you must first select it by using the LMB to highlight it.
Then, go to the menu and select "edit" and then "copy".  
Use the MMB to finalize the placement.

You may move a component by following the same operations except for
selecting  "move" instead of "copy" from the menu.  Also, if
you wish to delete a component, select it using the LMB, then go to
the menu and select "edit" and "delete" or simply select it and 
hitting the "d" key.  It will go away.  

Note: if you want to cancel a menu-selected command during its
execution, press  the right mouse button (RMB).  To undo the most
recent operation, select "edit" and "undo"  from the menu. 

At this point, you may wish to zoom in on the schematic so that you
can see the  details more clearly.  The following special function
keys may be used: 

F5  --  redraws the screen in case some garbage is left while editing
F6  --  pans (centers the viewing area around the cursor arrow)
F7  --  zoom in 2X
F8  --  zoom out 2X
F9  --  select zoom 
        (select zoom area with mouse, then hit left mouse button) 
F10 --  shows the full schematic 

For this example, position the cursor over a component and hit
F6 and then F7 two or three times.  A grid will appear on the screen. 

Now, to add nets to the components, go to the  menu and select
"add"  and "net".  Move the cursor to the output of the component and click
the middle   button on the pin.  Now, without holding any mouse
buttons, drag the cursor to the right about one inch and click the
middle button again.  This creates a   frozen junction in the net.
Now press the RMB.  This creates a square node, and the line is a
"dangling" net. 

To connect two components with a net, move the cursor to the pin of
interest and click the middle button.  Now, without holding any mouse
buttons, drag the cursor to the next pin of interest on the other
component and click the middle button and then the right-most button.
You should see a line connecting the two symbols.

If you want to connect a net to an existing net, extend the net
from its origin to the place you want to attach it to on the other
net.  Then press the middle button, and a round node will appear at
the junction of the two nets. If you wish to move or delete a net,
first select it using the LMB and then go the  menu and select
the appropriate command ("move" or "delete".)

To label a net in your schematic, use the left-most button to select 
the desired net.  Then, go to the  menu and select "add" and
then "label".  Press the middle button and type in the desired label
name.  You will see an empty box which you can move until it is in the
desired position.  

Label the inputs and outputs of the and/or circuit as shown in the
given schematic.  You should not label any two or more nets or 
components the same name in the same schematic since this will 
confuse the simulator.

Select the component "smv" and then press "Control" and "A" simultaneously.
On the line labeled "layout_generator", type "\stdcell -flatten -r 1"
and on a blank line, type "sivmaster" and "dpp_first".

When you think you are finished editing the schematic entirely, 
go to the  menu and select "file" and "write".  A message will appear
on your screen.  Note any errors or warnings and then press any
button.  Errors must be corrected to proceed while warnings must be
evaluated to determine whether they are harmful.

To make a postscript plot of the schematic, go to the RED dot and
select "plot setup".  Under "device", select "postscript" and
"zoomed view".  Then select "accept" and "dismiss".   
For subsequent plots, go to the RED dot and select "plot go" and "dismiss".
A file called "dpp_first.001p" will be generated that you can view
using ghostview.  Alternately, you can send this file to a printer.

To hide the viewdraw window, click the LMB on the upper left-hand
corner of the window.

------------------------------------------------------------------
----------------- VIEWSIM & VIEWTRACE (simulation) ---------------
------------------------------------------------------------------

Before beginning the simulation, copy the command file by typing:

  /u4/user/hw7dpp % cp /usr/cad/course/dpp_first.cmd .

Once you are ready to begin simulation, go to the powerview cockpit
menu and double-click on the "VSM" icon.  Enter the design name as
"dpp_first" and then select "accept".  Another file with the ".vsm" 
extension and a message will be displayed with any errors or warnings.  
To correct these, you must return to the schematic, make  the
changes and repeat "file-write".  Also, you must repeat the
use of the vsm tool.

To begin the simulation, go to the powerview cockpit menu and 
double-click on the "viewsim" icon.  Enter the design name as
"dpp_first" and then select "accept".  Another window will pop up.

The following message should appear:

VHDL warning, file aoif2201: Time value "1910ps" precision greater 
     than 100ps.  Setting to 1.9ns
Total of 4 digital modules were processed.
17 delay values were rounded to nearest minimum resolvable time unit.
Simulation stopped at 40.0ns.
Simulation stopped at 80.0ns.
Simulation stopped at 120.0ns.
Simulation stopped at 160.0ns.
SIM>

Ignore the VHDL warnings about time values.

On the right side of this viewsim window, select "Misc", "command file"
(it should default to "dpp_first.cmd"), "execute" and "accept".

A viewtrace timing diagram should appear. Check the results for
proper operation.  Note that the location of the timing bar 
can be controlled by the cursor.  It also defines the values
that are back-annotated onto the schematic.  You may view these
results in the viewdraw window.  

If the simulation shows that changes are required, you may need 
to return to viewdraw and edit the schematic.  If you do, don't 
forget to perform "file-write", re-invoke the vsm tool and 
re-invoke the viewsim tool.

If you would like to change only the command file, go to the RED dot
in the viewsim window and select "edit text file" and enter "dpp_first.cmd" 
and "accept".  In this new window, make the changes you desire and then select`
"file-save current file" and under the RED dot select "dismiss window".
You may wish to use the text editor to view this file anyway to
see just what the simulator was asked to do.

Before executing the simulation again, quit the viewtrace window
by selecting that choice under the RED dot.  Then go to the viewsim 
window and type "restart".  Then, you can re-invoke "misc-command file-
execute-accept".  A new viewtrace window will pop up.  

You can use xv to grab the viewtrace window.  

Your timing diagram should look like the one shown below:

To quit all of the Viewlogic windows, go to the powerview cockpit
and under the RED dot select "quit powerview".

To translate from Viewlogic format into Berkeley's OCT, type the following:
  
  [110a] sun1: /u4/user/hw7dpp % custom_tools
  
  [110b] sun1: /u4/user/hw7dpp % vb2oct -s dpp_first

To generate the layout, type:

  [111] sun1: /u4/user/hw7dpp % DMoct -P dpp_first dpp_first

It is normal to see:

Stdcell> Couldn't find the program TimberWolfSC-6_0
Stdcell> Running TimberWolfSC-4
...

When the program finishes, move down to the layout subdirectory and invoke MAGIC:

  [112] sun1: /u4/user/hw7dpp % cd layout
  
  [113] sun1: /u4/user/hw7dpp/layout % magic dpp_first

Your layout should look like the one shown below:



While in MAGIC, place the cursor in the layout window and
type ":ext" to extract the file.  Then, type ":quit" to quit MAGIC.

Then, translate into IRSIM format:

  [114] sun1: /u4/user/hw7dpp/layout % ext2irsim dpp_first

Now, copy the VIEWSIM command file to this subdirectory and change its name slightly:

  [115] sun1: /u4/user/hw7dpp/layout % cp ../dpp_first.cmd dpp_first.cmds

Now, use an editor to modify "dpp_first.cmds" by replacing "wave dpp_first.wfm"
with "analyzer" and deleting any radix commands.

Invoke IRSIM by typing:

  [116] sun1: /u4/user/hw7dpp/layout % irsim scmos060.prm dpp_first.sim -dpp_first.cmds

The timing diagram should appear.  Use xv to grab the 
diagram which should look similar to the one shown below:

To exit, place your cursor in the text window and type "q".


dbouldin@utk.edu