Generate ( 'DpgenSfft', modelname , param = { 'nbit' : n , 'physical' : True , 'behavioral' : True } )
modelname
. The two latches of this flip-flop are static i.e. each one is made of two interters looped togethers.
n
bits)
n
bits)
param
.
one
, it enables the scan-path mode. Note that in scan-path mode, the wen signal is not effective
i0[0]
. The scout is q[N
-1]
(in the following example this is q[3]
)
one
, it enables the writing of the flip-flop
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) )
Sophie BELLOEIL