Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: [802.3_SPMD] state diagrams - question



Classified


Hi George,

 

If you recall we encountered a similar limitation during 802.3bt, when we needed an IF/ELSE statement.

The solution then was to create the mechanism for it for Clause 145.

Below you already describe what you want, you could add a “Conventions” clause and create your favorite flavor of a SWITCH statement. You can point to and build upon the state diagram conventions in Clause 145 (by many considered one of the very finest Clauses in all of 802), which will get you operator precedence and an IF THEN ELSE construct already.

 

Tip: don’t forget to add a keyword that applies when none of the cases is true. Also define what happens if multiple are true.

 

Kind regards,

 

Lennart

 

From: George Zimmerman <george@xxxxxxxxxxxxxxxxxxxx>
Date: Wednesday, 26 June 2024 at 20:35
To: STDS-802-3-SPMD@xxxxxxxxxxxxxxxxx <STDS-802-3-SPMD@xxxxxxxxxxxxxxxxx>
Subject: [802.3_SPMD] state diagrams - question

CAUTION: This email is from outside the organization. Do not click on links or open attachments unless you trust the sender.

 

Does anyone know of an example of something like a “switch/case” construct in the 802.3 state diagrams?

 

I am looking for an elegant recursive solution that looks like:

 

Switch ( index )

Case 1:  do_x

Case 2: do_y

Case 3: do z,

End

….

 

Instead of writing a whole string of if-then-else:

If(index = 1) do_x; ELSE

If (index = 2) do_y; ELSE

If (index = 3) do_z); END

 

 

George Zimmerman, Ph.D.

President & Principal

CME Consulting, Inc.

Experts in Advanced PHYsical Communications

george@xxxxxxxxxxxxxxxxxxxx

310-920-3860

 


To unsubscribe from the STDS-802-3-SPMD list, click the following link: https://listserv.ieee.org/cgi-bin/wa?SUBED1=STDS-802-3-SPMD&A=1


To unsubscribe from the STDS-802-3-SPMD list, click the following link: https://listserv.ieee.org/cgi-bin/wa?SUBED1=STDS-802-3-SPMD&A=1