hdl.{ast,dsl}, back.{pysim,rtlil}: allow multiple case values.
authorwhitequark <cz@m-labs.hk>
Fri, 28 Jun 2019 04:37:08 +0000 (04:37 +0000)
committerwhitequark <cz@m-labs.hk>
Fri, 28 Jun 2019 04:37:08 +0000 (04:37 +0000)
commit42f15ee673effb1bdbd45868db524ee47c9d059f
tree1297dd31415ae9a7693e893daa2abb335ebb156b
parentec80024e556a7c05736668e283b44cb007f48c5c
hdl.{ast,dsl}, back.{pysim,rtlil}: allow multiple case values.

This means that instead of:

    with m.Case(0b00):
        <body>
    with m.Case(0b01):
        <body>

it is legal to write:

    with m.Case(0b00, 0b01):
        <body>

with no change in semantics, and slightly nicer RTLIL or Verilog
output.

Fixes #103.
nmigen/back/pysim.py
nmigen/back/rtlil.py
nmigen/compat/fhdl/structure.py
nmigen/hdl/ast.py
nmigen/hdl/dsl.py
nmigen/test/test_hdl_dsl.py