ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
387 stars 90 forks source link

Update Enum Doc for Scala's limit on Tuple size #507

Closed seldridge closed 9 years ago

seldridge commented 9 years ago

Scala has a built in size limitation on the size of a Tuple of 22 (https://groups.google.com/forum/#!topic/scala-language/wE1eLIOBBR4). This becomes a problem if you try to define an Enum in the "standard" way as outlined in the documentation.

This updates the documentation to make this issue known and provides a new example for how to use one of the alternative methods which does not have this size 22 limitation.