Guest User

Untitled

a guest
Jan 26th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  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. ;;
  7. int i;
  8. for (i = 0 ; i < personality ; i++){
  9. if (in & (1 << i)){
  10. out(i) = 1;
  11. }else{
  12. out(i) = 0;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment