-
-
Save ktemkin/e482fd1ce0249031f7afb0795e14fb07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ktemkin@makoto ~ $ from nmigen import * | |
ktemkin@makoto ~ $ x = Signal(32) | |
ktemkin@makoto ~ $ x.word_select(0, 8) | |
(slice (sig x) 0:8) | |
ktemkin@makoto ~ $ x.word_select(1, 8) | |
(slice (sig x) 8:16) | |
ktemkin@makoto ~ $ x.word_select(3, 8) | |
(slice (sig x) 24:32) | |
ktemkin@makoto ~ $ x.word_select(4, 8) | |
(slice (sig x) 32:32) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment