Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Problem about the Pin planner of SOPC core

I bulid a system with SOPC builder.

And I only use six components ,CPU ,JtAG Uart ,system id, Pio*3 and pll.

The PIO that two is 16 bits output signal, the other one is 1 bit output signal.

thay are used to be the interface to connect the other circuit.

when i used the tool of pin planner assigned the pin name. and then I load my circuit into the board

I found a problem. The Board is not working and the device that I didn't assign devices worked.

I don't understand what is the problem in my system.

My board is DE2. Chip is EP2C35F672C6.

Does anyone could help me?

thank you very much.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In the schematic you posted, I see that g output pin seems to be connected to a bus wire. Is there a mistake or is it simply a problem with the bitmap image?

    Anyway, please, explain better your problem.

    Which device works and which doesn't?

    The problem is with pin assignment or with pio interface with the pwm_hall module?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    In the schematic you posted, I see that g output pin seems to be connected to a bus wire. Is there a mistake or is it simply a problem with the bitmap image?

    Anyway, please, explain better your problem.

    Which device works and which doesn't?

    The problem is with pin assignment or with pio interface with the pwm_hall module?

    --- Quote End ---

    Sorry, My problem didn't discribe clear enough.

    My problem is ablout the interface between the Core of SOPC and pwm circuit.

    I used the PIO to connect the Core of SOPC and pwm_hall circuit,

    but I find a problem.

    In my design, the output of pwm_hall doesn't work.

    However, I found a problem is the input of pwm_hall doesn't gat any signal form the output of Core of SOPC.

    So, my problem is PIO interface. How to solve this problem??

    And I already confirm the circuit of pwm_hall is workable.

    Could give any suggest how to set that interface between the Core of SOPC and my pwm_hall??

    Thank you so much.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    First of all make sure pio pins direction is set as output.

    If you defined a bidirectional pio port you should have used IOWR_ALTERA_AVALON_PIO_DIRECTION macro somewhere in order to set pin direction bits to 1.

    Then signal tap and check if your sopc can actually drive these pins.

    You didn't post any information about the hall module interface, but from the schematic I suppose p_pio port sets the period, d_pio the duty cycle and ri_pio (the one made of a single pin) is a kind of latch enable or pulse command.

    If this is the case, are you driving the PIOs in the correct sequence?

    - put ri_pio to inactive level (low?)

    - set proper values to p_pio and d_pio

    - pulse ri_pio

    Cris