Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digital.Multiplexers.MUX2x1 uses each on non-array elements #998

Closed
modelica-trac-importer opened this issue Jan 14, 2017 · 7 comments
Closed
Assignees
Labels
bug Critical/severe issue L: Electrical.Digital Issue addresses Modelica.Electrical.Digital
Milestone

Comments

@modelica-trac-importer
Copy link

Reported by jmattsson on 22 Feb 2013 13:00 UTC
Electrical.Digital.Multiplexers.MUX2x1 contains the declaration:

D.Delay.InertialDelaySensitive inertialDelaySensitive(each tLH=tLH, each tHL=tHL, y(start=L.'U',fixed=true));

InertialDelaySensitive is not a scalar type, and tLH and tHL are both scalars. The specification clearly forbids using each on scalar components:

The each keyword on a modifier requires that it is applied in an array declaration/modification, and the modifier is applied individually to each element of the array.


Migrated-From: https://trac.modelica.org/Modelica/ticket/998

@modelica-trac-importer modelica-trac-importer added bug Critical/severe issue L: Electrical.Digital Issue addresses Modelica.Electrical.Digital labels Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Comment by jmattsson on 22 Feb 2013 13:14 UTC
This also applies to all models in Electrical.Digital.Tristates, except WiredX.

@modelica-trac-importer
Copy link
Author

Modified by dietmarw on 22 Feb 2013 16:11 UTC

@modelica-trac-importer modelica-trac-importer added this to the MSL3.2.1 milestone Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Comment by clauss on 6 Mar 2013 09:43 UTC
Fixed with 2a7967b. Thank you for reporting this.

@modelica-trac-importer
Copy link
Author

Modified by majetta on 5 Apr 2013 12:47 UTC

@modelica-trac-importer
Copy link
Author

Changelog modified by majetta on 5 Apr 2013 12:47 UTC
Error fixed in Electrical.Digital

@modelica-trac-importer
Copy link
Author

Modified by majetta on 10 Apr 2013 13:09 UTC

@modelica-trac-importer
Copy link
Author

Changelog modified by majetta on 10 Apr 2013 13:09 UTC
In model Electrical.Digital.Multiplexers.MUX2x1 the keyword each was removed at the instantiation of the variable inertialDelaySensitive since this variable is a scalar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Electrical.Digital Issue addresses Modelica.Electrical.Digital
Projects
None yet
Development

No branches or pull requests

2 participants