Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/migen
base: 2f522bdd9f3f
Choose a base ref
...
head repository: m-labs/migen
compare: 2a4cc3875cd1
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 12, 2013

  1. Add support for negative slice indices

    In python a negative indices usually mean start counting from the right side.
    I.e. if the index is negative is acutal index used is len(l) + i. E.g. l[-2]
    equals l[len(l)-2].
    
    Being able to specify an index this way also comes in handy for migen slices in
    some cases. E.g. the following snippet can be implement to shift an abitrary
    length register n bits to the right:
    	reg.eq(Cat(Replicate(0, n), reg[-n:])
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    larsclausen committed Mar 12, 2013
    Copy the full SHA
    72579a6 View commit details
    Browse the repository at this point in the history
  2. Allow SimActors to produce/consume a constant stream of tokens

    Currently a SimActor requires one clock period to recover from consuming or
    producing a token. ack/stb are deasserted in the cycle where the token is
    consumed/produced and only re-asserted in the next cycle. This patch updates the
    code to keep the control signals asserted if the actor is able to produce or
    consume a token in the next cycle.
    
    The patch also sets 'initialize' attribute on the simulation method, this will
    make sure that the control and data signals will be ready right on the first
    clock cycle.
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    larsclausen committed Mar 12, 2013
    Copy the full SHA
    dea4674 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2013

  1. Merge pull request #6 from larsclausen/master

    Minor improvements
    Sébastien Bourdeauducq committed Mar 17, 2013
    Copy the full SHA
    2a4cc38 View commit details
    Browse the repository at this point in the history