Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------module---------------
- module led(
- input BTN_EAST, output LED
- );
- reg [23:0] counter;
- always @(posedge BTN_EAST) begin
- counter <= counter + 1;
- end
- assign LED = counter[23];
- endmodule
- ---------------constraint---------------
- ##############################################################################
- # Directional Push-Buttons (BTN)
- ##############################################################################
- NET "BTN_EAST" LOC = "T16" | IOSTANDARD = LVCMOS33 | PULLDOWN ;
- NET "BTN_NORTH" LOC = "T14" | IOSTANDARD = LVCMOS33 | PULLDOWN ;
- NET "BTN_SOUTH" LOC = "T15" | IOSTANDARD = LVCMOS33 | PULLDOWN ;
- NET "BTN_WEST" LOC = "U15" | IOSTANDARD = LVCMOS33 | PULLDOWN ;
- ##############################################################################
- # Discrete Indicators (LED)
- ##############################################################################
- NET "LED" LOC = "R20" | IOSTANDARD = LVCMOS33 | DRIVE = 8 | SLEW = SLOW ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement