Changeset 717

Show
Ignore:
Timestamp:
10/18/2007 03:20:55 PM (15 months ago)
Author:
clauss
Message:

error fixed: Within gates the number of inputs was not given to the included Basic model correctly. Additionally: comment in pulse source removed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Modelica/trunk/Modelica/Electrical/Digital.mo

    r699 r717  
    32943294      extends D.Interfaces.MISO; 
    32953295      extends D.Delay.DelayParams; 
    3296       D.Basic.And G1(final n)     annotation (Placement(transformation(extent={ 
     3296      D.Basic.And G1(final n=n)     annotation (Placement(transformation(extent={ 
    32973297                {-40,-20},{0,20}}, rotation=0))); 
    32983298      D.Delay.InertialDelaySensitive G2( 
     
    34283428          Ellipse(extent=[60, -10; 40, 10], style(color=0, thickness=2))), 
    34293429        Diagram); 
    3430       D.Basic.Nand G1(final n)      annotation (Placement(transformation(extent= 
     3430      D.Basic.Nand G1(final n=n)      annotation (Placement(transformation(extent= 
    34313431               {{-40,-20},{0,20}}, rotation=0))); 
    34323432      D.Delay.InertialDelaySensitive G2( 
     
    34483448      extends D.Delay.DelayParams; 
    34493449      extends D.Interfaces.MISO; 
    3450       D.Basic.Or G1(final n)    annotation (Placement(transformation(extent={{ 
     3450      D.Basic.Or G1(final n=n)    annotation (Placement(transformation(extent={{ 
    34513451                -40,-20},{0,20}}, rotation=0))); 
    34523452      D.Delay.InertialDelaySensitive G2( 
     
    35093509      extends D.Delay.DelayParams; 
    35103510      extends D.Interfaces.MISO; 
    3511       D.Basic.Nor G1(final n)     annotation (Placement(transformation(extent={ 
     3511      D.Basic.Nor G1(final n=n)     annotation (Placement(transformation(extent={ 
    35123512                {-40,-20},{0,20}}, rotation=0))); 
    35133513      D.Delay.InertialDelaySensitive G2( 
     
    35763576      extends D.Delay.DelayParams; 
    35773577      extends D.Interfaces.MISO; 
    3578       D.Basic.Xor G1(final n)     annotation (Placement(transformation(extent={ 
     3578      D.Basic.Xor G1(final n=n)     annotation (Placement(transformation(extent={ 
    35793579                {-40,-20},{0,20}}, rotation=0))); 
    35803580      D.Delay.InertialDelaySensitive G2( 
     
    36373637      extends D.Delay.DelayParams; 
    36383638      extends D.Interfaces.MISO; 
    3639       D.Basic.Xnor G1(final n)      annotation (Placement(transformation(extent= 
     3639      D.Basic.Xnor G1(final n=n)      annotation (Placement(transformation(extent= 
    36403640               {{-40,-20},{0,20}}, rotation=0))); 
    36413641      D.Delay.InertialDelaySensitive G2( 
     
    41254125              fillPattern=FillPattern.Solid)})); 
    41264126       
    4127     /* 
    4128 algorithm  
    4129   if nperiod == 0 then 
    4130     y := quiet; 
    4131   elseif (nperiod >= np) or (nperiod < 0) then 
    4132     when sample(startTime, period) then 
    4133       T0 := time; 
    4134       if (nperiod > 0) then 
    4135         np := np + 1; 
    4136       end if; 
    4137     end when; 
    4138     y := if (time < startTime or time >= T0 + ((width*period)/ 
    4139       100)) or not (nperiod >= np or nperiod < 0) then quiet else pulse; 
    4140   else 
    4141     y := quiet; 
    4142   end if; 
    4143 */ 
    41444127    protected  
    41454128      Boolean sampling;