Subsections


Comparison operations

Name

Eq/Ne : Easy way to test the value of the nets

Synopsys

netOut <= net.Eq ( "n" )

Description

Comparaison functions are listed below :

Note that it is possible to change the generator instanciated with the SetComp method.

Parameters

The constant given as argument must be a string representing :

Example

class essai ( Model ) :

  def Interface ( self ) :
    self.A = SignalIn  ( "a", 4 )
    
    self.S = SignalOut ( "s", 1 )
    self.T = SignalOut ( "t", 1 )

    self.vdd = VddIn  ( "vdd" )
    self.vss = VssIn  ( "vss" )
	
  def Netlist ( self ) :

    self.S <= self.A.Eq ( "4" )

    self.T <= self.A.Ne ( "1" )

Errors

Some errors may occur :

See Also

Introduction Netlist Instanciation of a multiplexor Instanciation of a shifter Instanciation of a register Instanciation of constants Boolean operations Arithmetical operations

Sophie BELLOEIL
20051116.1