daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 26th, 2012 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. component antimux "N-bit interger to binary decoder";
  2. pin out bit out-##[32:personality];
  3. pin in unsigned in;
  4. function _;
  5. license "GPL";
  6. author "andy@bodgesoc.org";
  7. ;;
  8. int i;
  9. for (i = 0 ; i < personality ; i++){
  10.     if (in & (1 << i)){
  11.         out(i) = 1;
  12.     }else{
  13.         out(i) = 0;
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top