Pulse Generator program that outputs a square wave signal between 0v and 3.3v on PMOD port JA1:J1 of Basys3 FPGA Board. Both Frequency and Duty Cycle are configured by the user on a scale of 1kHz - 99kHz and 1% - 99%.
Basys 3 Layout
PMOD Ports | PMOD JA Labels |
---|---|
PMOD Ports supply a max current of 2A / typical current between 100mA to 1.5A on a 3.3v supply with a zener diode regulator for each port. The VCC and Ground pins can deliver up to 1A of current. Pmod data signals are not matched pairs, and they are routed using best-available tracks without impedance control or delay matching. — Basys 3™ FPGA Board Reference Manual. Digilent, Inc.
Connect PMOD output JA1:J1 to an input and use either GND port on JA as common ground.
Peripherals | Description |
---|---|
Up Button | Increase Frequency or Duty Cycle value |
Down Button | Decrease Frequency or Duty Cycle value |
Left Button | Program Reset |
Center Button | Stop Pulse Generator |
Right Button | Start Pulse Generator |
Switch 0 | [Up] Program Frequency [Down] Program Duty Cycle |
Switch 15 | System Reset |
LEDs | Notify running program |
7 Segment Display | [Initialization] "----PULSE----" [Program] "Prog" | "Fr.01" | "dc.50" [Run] "run" | "Fr.01" | "dc.50" [Reset] "----" |
PMOD JA [JA1:J1] | Pulse Output |
- Basys3
- MicroUSB Cable
- Vivado HLx 2019.1: WebPACK and Editions - (any version after 2018.3)
- Open Vivado and Create Project (creates a new project)
- select RTL Project (Register-transfer level)
- In Add Sources window, click Add Files and select all .vhd files within the sources folder.
- Be sure to select "Copy sources into project" to prevent overwriting of original files.
- In Add Constraints window, click Add Files and select the .xdc constraint file within the constraints folder.
- Be sure to select "Copy sources into project" to prevent overwriting of original files.
- In Default Part window, select Boards and search for Basys3 in the search bar.
- Once on the PROJECT MANAGER page, execute these commands in the following order:
BEFORE OPERATION - Connect PMOD output JA1:J1 to an input and use either GND port on JA as common ground.
- Ahmad Frazier
- Cheik Sylla