Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Yut (input iw[0:7], input iw2[0:7],input zad[0:3],output ow[0:7])
- case(zad)
- '0001': assign ow = iw + iw2;
- '0010': assign ow = iw - iw2;
- '0100': assign ow = iw * iw2;
- '1000': assign ow = iw / iw2;
- endcase
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement