Advertisement
Guest User

Untitled

a guest
Dec 31st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module Yut (input iw[0:7], input iw2[0:7],input zad[0:3],output ow[0:7])
  2. case(zad)
  3. '0001': assign ow = iw + iw2;
  4. '0010': assign ow = iw - iw2;
  5. '0100': assign ow = iw * iw2;
  6. '1000': assign ow = iw / iw2;
  7. endcase
  8. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement