Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------module---------------
  2.  
  3. module led(
  4.     input BTN_EAST, output LED
  5.     );
  6.  
  7. reg [23:0] counter;
  8.  
  9. always @(posedge BTN_EAST) begin
  10.     counter <= counter + 1;
  11. end
  12.  
  13. assign LED = counter[23];
  14.  
  15. endmodule
  16.  
  17. ---------------constraint---------------
  18.  
  19. ##############################################################################
  20. # Directional Push-Buttons (BTN)
  21. ##############################################################################
  22.  
  23. NET "BTN_EAST"      LOC = "T16"  | IOSTANDARD = LVCMOS33 | PULLDOWN ;
  24. NET "BTN_NORTH"     LOC = "T14"  | IOSTANDARD = LVCMOS33 | PULLDOWN ;
  25. NET "BTN_SOUTH"     LOC = "T15"  | IOSTANDARD = LVCMOS33 | PULLDOWN ;
  26. NET "BTN_WEST"      LOC = "U15"  | IOSTANDARD = LVCMOS33 | PULLDOWN ;
  27.  
  28. ##############################################################################
  29. # Discrete Indicators (LED)
  30. ##############################################################################
  31.  
  32. NET "LED"        LOC = "R20"  | IOSTANDARD = LVCMOS33 | DRIVE = 8 | SLEW = SLOW ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement