Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component antimux "N-bit interger to binary decoder";
- pin out bit out-##[32:personality];
- pin in unsigned in;
- function _;
- license "GPL";
- author "andy@bodgesoc.org";
- ;;
- int i;
- for (i = 0 ; i < personality ; i++){
- if (in & (1 << i)){
- out(i) = 1;
- }else{
- out(i) = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement