Advertisement
Sb93

vaddoflow.v

Oct 31st, 2024 (edited)
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module vaddoflow(
  2.     input [3:0] a,
  3.     input [3:0] b,
  4.     output [6:0] seg_L,
  5.     output oflow);
  6.  
  7.     wire [4:0] x;
  8.  
  9.     assign x = a + b;
  10.  
  11.     vsevenseg u_vsevenseg (
  12.         .x(x[3:0]),
  13.         .seg_L(seg_L)
  14.     );
  15.  
  16.     assign oflow = x[4];
  17.  
  18. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement