Advertisement
Protricity

Untitled

May 11th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. `timescale 1ns / 1ps
  2. //////////////////////////////////////////////////////////////////////////////////
  3. // Company:
  4. // Engineer:
  5. //
  6. // Create Date: 17:26:08 05/10/2012
  7. // Design Name:
  8. // Module Name: Calc
  9. // Project Name:
  10. // Target Devices:
  11. // Tool versions:
  12. // Description:
  13. //
  14. // Dependencies:
  15. //
  16. // Revision:
  17. // Revision 0.01 - File Created
  18. // Additional Comments:
  19. //
  20. //////////////////////////////////////////////////////////////////////////////////
  21. module Proc(
  22. input clk,
  23. input [7:0] iDue,
  24. output [7:0] oBalance
  25. );
  26.  
  27. reg [7:0] balance = 0;
  28.  
  29. initial
  30. begin
  31.  
  32.  
  33. balance = balance + 1;
  34.  
  35. assign oBalance = balance;
  36.  
  37. $finish;
  38. end
  39. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement