element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General IO Through Pmod Port
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 366 subscribers
  • Views 710 views
  • Users 0 members are here
Related

IO Through Pmod Port

Former Member
Former Member over 13 years ago


Is it possible to use one of the individual pins of one of the Pmod ports as a digital output?  I am starting simple with this zedboard and I am thinking of just using a flipflop in the PL and routing it to a Pmod pin.  Can I do that with one of the 64 GPIO available?

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 13 years ago

    You sure can!  Referencing the Zedboard Schematic found here: http://zedboard.org/documentation

    You can see on page 3 are all 5 PMOD connectors.  One of these labeled MIO, and is attached to Bank 500, which is accessable via the PS.  All other four PMOD's are accessable via the PL IO of Zynq-7000.

    If we were to look at the JA1 connector, pin labeled JA1, we can follow it Sheet #9, where in Bank 13 we see it is attached to pin Y11.

    Placing this line into your UCF file:

    NET my_output LOC="Y11";

    will connect any signal on your top module named "my_output" to the output pin.  Here is what the VHDL port statement would look like:

    PORT(
      clk : in std_logic,
      my_input : in std_logic,
      my_output : out std_logic
    );

    Hope that helps!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    I want to test the IO frequency of Pmod,I link JA1 to JB1.

    Set JA1 out,JB1 in,and JB1 light LD0.

    But I have something wrong In the below code,could you help me? Thinks!

    module test(
        input GCLK,
    t output [7:0] LD,
    t output JA1,
    t input JB1
    t );
    reg clk;
    reg data = 1'b0;
    reg [7:0] LD_reg;
    reg [3:0] CLK_counter = 0;

    wire JA1;


    assign LD = LD_reg;
    assign JA1 = data;



    always@(posedge GCLK)
    begin
        if(CLK_counter==20/2-1)
    t begin
    t     CLK_counter <= 0;
    tt  clk <= ~clk;
    tend
    telse
    t     CLK_counter <= CLK_counter+4'b1;
    end

    always@(posedge clk)
    begin
    t LD_reg[0] <= JB1;
    t LD_reg[1] <= 0;     
        LD_reg[2] <= 0;
        LD_reg[3] <= 0;
        LD_reg[4] <= 0;
        LD_reg[5] <= 0;
        LD_reg[6] <= 0;
        LD_reg[7] <= 0;
    t data = ~data;
    end
    endmodule

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago

    1. Don't use flip-flops to generate a new clock. Clock all the logic from GCLK. Use the CLK_counter as a clock enable to regulate the speed of the JB1 inversion. The Xilinx forums discuss this topic regularly.
    2. In the second 'always' block, use data <= ~data, not data = data. ISE gives an error if = and <= are both used in the same clocked process.
    3. clk is never initialized

    ---
    Joe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    Thanks a lot for your reply,it help me a lot.
    In addition,I want to confirm the GCLK,is 100M or 200M?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • deaxman
    0 deaxman over 12 years ago in reply to Former Member

    It is 100M.  I am having trouble reading from the port W12.  Can I just make the verilog statement "assign LED1 = (Net with loc W12) and the LED will light up when I connect 3.3 volts to JB1?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube