13.07.2015 Views

XPLA Designer v2.1 User's Manual

XPLA Designer v2.1 User's Manual

XPLA Designer v2.1 User's Manual

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

out1.c = clk;out2.c = clk;when (in1 == 0) then{when (in2 == 0) then{out1 = 1;out2 = 0;}else{out1 = 1;out2 = 1;}}else when (in1 == 1 ) then{when (in2 == 0) then{out1 = 0;out2 = 0;}else{out1 = 0;out2 = 1;}}endwithDescriptionThe with statement is used in conjunction with if-then-else and case structures in statediagrams to combine output equations with state transitions. It is also useful to makeregistered outputs transition with the state, rather than one clock cycle after the statechange. Normally, when state diagrams are written without using the with statement,registered outputs change one clock cycle after the state. For more information, refer tothe state_diagram, if-then-else, and case sections in this chapter.Syntax135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!