Skip to content

Representing parameter as little endian #80

Answered by hlorenzi
michaelkamprath asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, you can use the following syntax: if x is a 16-bit value, then x[7:0] @ x[15:8] is its little-endian representation (Verilog-style bit slices). I'm thinking about adding an leXX() family of functions for automatically doing that in the future! (In this case it would be le16(x))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hlorenzi
Comment options

Answer selected by michaelkamprath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants