Skip to content

Instantly share code, notes, and snippets.

@jz5
Created May 18, 2014 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jz5/209ef9243909cd3d1789 to your computer and use it in GitHub Desktop.
Save jz5/209ef9243909cd3d1789 to your computer and use it in GitHub Desktop.
a[7:0] = {<< {8'b1100_0101}}; // a = 8'b1010_0011 bit 逆順
b[31:0]= {<< 8 {32'hDEAD_BEEF}}; // b= 32'hEFBE_ADDE 8bit 単位で並び替え (endian 変換)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment