coriolis/stratus1/doc/dpgen/latex/dpgen/node38.html

177 lines
5.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2012 (1.2)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>DpgenSfft</TITLE>
<META NAME="description" CONTENT="DpgenSfft">
<META NAME="keywords" CONTENT="dpgen">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="LaTeX2HTML v2012">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="SoC.css">
<LINK REL="next" HREF="node39.html">
<LINK REL="previous" HREF="node37.html">
<LINK REL="up" HREF="dpgen.html">
<LINK REL="next" HREF="node39.html">
</HEAD>
<BODY >
<DIV CLASS="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr><td class="navigation" align="left" width="33%"><B>Previous</B></td>
<td class="navigation" align="center" width="34%"><B>Up</B></td>
<td class="navigation" align="right" width="33%"><B>Next</B></td>
</tr><tr>
<td class="navigation" align="left" width="33%"><A HREF="node37.html">DpgenSff</A></td>
<td class="navigation" align="center" width="34%"><A HREF="dpgen.html">Dpgen generators User's Manual</A></td>
<td class="navigation" align="right" width="33%"><A HREF="node39.html">About this document ...</A></td>
</tr></table>
<hr>
<br>
</DIV>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION000380000000000000000">
DpgenSfft</A>
</H1>
<UL>
<LI><SPAN CLASS="textbf">Name</SPAN> : DpgenSfft - Static Flip-Flop with Scan-Path Macro-Generator
</LI>
<LI><SPAN CLASS="textbf">Synopsys</SPAN> :
<PRE>
Generate ( 'DpgenSfft', modelname
, param = { 'nbit' : n
, 'physical' : True
, 'behavioral' : True
}
)
</PRE>
</LI>
<LI><SPAN CLASS="textbf">Description</SPAN> : Generates a n bits static flip-flop with scan-path named <code>modelname</code>. The two latches of this flip-flop are static i.e. each one is made of two interters looped togethers.
</LI>
<LI><SPAN CLASS="textbf">Terminal Names</SPAN> :
<UL>
<LI><SPAN CLASS="textbf">scan</SPAN> : scan-path mode (input, 1 bit)
</LI>
<LI><SPAN CLASS="textbf">scin</SPAN> : scan path in (input, 1 bit)
</LI>
<LI><SPAN CLASS="textbf">wen</SPAN> : write enable (1 bit)
</LI>
<LI><SPAN CLASS="textbf">ck</SPAN> : clock signal (1 bit)
</LI>
<LI><SPAN CLASS="textbf">i0</SPAN> : data input (<code>n</code> bits)
</LI>
<LI><SPAN CLASS="textbf">q</SPAN> : output (<code>n</code> bits)
</LI>
<LI><SPAN CLASS="textbf">vdd</SPAN> : power
</LI>
<LI><SPAN CLASS="textbf">vss</SPAN> : ground
</LI>
</UL>
</LI>
<LI><SPAN CLASS="textbf">Parameters</SPAN> : Parameters are given in the a map <code>param</code>.
<UL>
<LI><SPAN CLASS="textbf">nbit</SPAN> (mandatory) : Defines the size of the generator
</LI>
<LI><SPAN CLASS="textbf">physical</SPAN> (optional, default value : False) : In order to generate a layout
</LI>
<LI><SPAN CLASS="textbf">behavioral</SPAN> (optional, default value : False) : In order to generate a behavior
</LI>
</UL>
</LI>
<LI><SPAN CLASS="textbf">How it works</SPAN> :
<UL>
<LI>When scan is set to <code>one</code>, it enables the scan-path mode. Note that in scan-path mode, the wen signal is not effective
</LI>
<LI>scin : the input of the scan-path. This terminal is different from <code>i0[0]</code>. The scout is <code>q[N</code>-<code>1]</code> (in the following example this is <code>q[3]</code>)
</LI>
<LI>When wen is set to <code>one</code>, it enables the writing of the flip-flop
</LI>
</UL>
</LI>
<LI><SPAN CLASS="textbf">Example</SPAN> :
<PRE>
from stratus import *
class inst_sfft ( Model ) :
def Interface ( self ) :
self.scan = SignalIn ( "scin", 1 )
self.scin = SignalIn ( "scan", 1 )
self.ck = SignalIn ( "ck", 1 )
self.wen = SignalIn ( "wen", 1 )
self.i = SignalIn ( "in", 4 )
self.o = SignalOut ( "out", 4 )
self.vdd = VddIn ( "vdd" )
self.vss = VssIn ( "vss" )
def Netlist ( self ) :
Generate ( 'DpgenSfft', 'sfft_4'
, param = { 'nbit' : 4
, 'physical' : True
}
)
self.I = Inst ( 'sfft_4', 'inst'
, map = { "wen" : self.wen
, "ck" : self.ck
, "scan" : self.scan
, "scin" : self.scin
, "i0" : self.i
, "q" : self.o
, 'vdd' : self.vdd
, 'vss' : self.vss
}
)
def Layout ( self ) :
Place ( self.I, NOSYM, Ref(0, 0) )
</PRE>
</LI>
</UL>
<P>
<DIV CLASS="navigation">
<p>
<hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr><td class="navigation" align="left" width="33%"><B>Previous</B></td>
<td class="navigation" align="center" width="34%"><B>Up</B></td>
<td class="navigation" align="right" width="33%"><B>Next</B></td>
</tr><tr>
<td class="navigation" align="left" width="33%"><A HREF="node37.html">DpgenSff</A></td>
<td class="navigation" align="center" width="34%"><A HREF="dpgen.html">Dpgen generators User's Manual</A></td>
<td class="navigation" align="right" width="33%"><A HREF="node39.html">About this document ...</A></td>
</tr></table>
<hr>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
Sophie B<small>ELLOEIL</small><br>20051116.1
</ADDRESS>
</BODY>
</HTML>