Changeset 717
- Timestamp:
- 10/18/2007 03:20:55 PM (15 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/Modelica/Electrical/Digital.mo (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/Electrical/Digital.mo
r699 r717 3294 3294 extends D.Interfaces.MISO; 3295 3295 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={ 3297 3297 {-40,-20},{0,20}}, rotation=0))); 3298 3298 D.Delay.InertialDelaySensitive G2( … … 3428 3428 Ellipse(extent=[60, -10; 40, 10], style(color=0, thickness=2))), 3429 3429 Diagram); 3430 D.Basic.Nand G1(final n ) annotation (Placement(transformation(extent=3430 D.Basic.Nand G1(final n=n) annotation (Placement(transformation(extent= 3431 3431 {{-40,-20},{0,20}}, rotation=0))); 3432 3432 D.Delay.InertialDelaySensitive G2( … … 3448 3448 extends D.Delay.DelayParams; 3449 3449 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={{ 3451 3451 -40,-20},{0,20}}, rotation=0))); 3452 3452 D.Delay.InertialDelaySensitive G2( … … 3509 3509 extends D.Delay.DelayParams; 3510 3510 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={ 3512 3512 {-40,-20},{0,20}}, rotation=0))); 3513 3513 D.Delay.InertialDelaySensitive G2( … … 3576 3576 extends D.Delay.DelayParams; 3577 3577 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={ 3579 3579 {-40,-20},{0,20}}, rotation=0))); 3580 3580 D.Delay.InertialDelaySensitive G2( … … 3637 3637 extends D.Delay.DelayParams; 3638 3638 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= 3640 3640 {{-40,-20},{0,20}}, rotation=0))); 3641 3641 D.Delay.InertialDelaySensitive G2( … … 4125 4125 fillPattern=FillPattern.Solid)})); 4126 4126 4127 /*4128 algorithm4129 if nperiod == 0 then4130 y := quiet;4131 elseif (nperiod >= np) or (nperiod < 0) then4132 when sample(startTime, period) then4133 T0 := time;4134 if (nperiod > 0) then4135 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 else4141 y := quiet;4142 end if;4143 */4144 4127 protected 4145 4128 Boolean sampling;
