• 0
Sign in to follow this  
asmao

PMOD as GPIO

Question

Hello,

 
I'm currently using a Nexys 4 board and I would like to serially output and receive data.
 
I was wondering if this could be done through a PMOD port? If so, how?
 
Inside of my HDL design (I'm using Vivado 2014.2 and my HDL is in verilog) I'm asserting various PMOD ports yet whenever I try to measure the outputs I got nothing.
 
My HDL looks something like this:
assign JC1 = 1,
           JC2 = 0;
 
Both JC1 and JC2 measure to 0. I've also tried the alternative names listed in the schematics (K2 and E7) as well as other PMOD interfaces.
 
If I can't use the PMOD ports in this fashion, I was hoping to hear any suggestions?
 
Thanks,
Alvin

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi Alvin, 

 

Have you added a constraint to bind the signal to the physical pin? Just giving it the same name as the pin isn't enough...

 

The master constraint file for the Nexys4 can be grabbed from http://www.digilentinc.com/Data/Products/NEXYS4/Nexys4_Master_xdc.zip, and then you will need to add the lines like this to your projects Implementation Constraint file.

 

NET "JC0" LOC = "K2" | IOSTANDARD = "LVCMOS33";
 
This will cause the signal JC0 to be connected on the "K2" pin on the FPGA package, 
 
Mike

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this