Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module Zadanie_1_sumator_1_bit_z_plusem(i_bit1, i_bit2, i_cin, o_sum, o_cout);
  2.     input i_bit1, i_bit2, i_cin;
  3.     output o_sum, o_cout;
  4.    
  5.     //Do wyjść należy przypisać sumę wejść "+"
  6.     //Należy pierwszo dać przeniesienie, później sumę
  7.     assign {o_cout, o_sum} = i_bit1 + i_bit2 + i_cin;
  8.    
  9. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement