Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

The problem is about how to control the circuit of New component of SOPC Builder

Altera_Forum
Honored Contributor II
1,159 Views

First, Thanks everyone's help. 

I used the tool of new component of SOPC builder to combine mycircuit, the figure is my setting of interface. 

My problem is how to control the data of pwm_hall. 

May I control the signal of pwm_hall_period, pwm_hall_data and hall_n_to_pre. 

 

For example could I write a function to assign the data? 

Like this "IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, a)" 

Does anyone can help me? 

In my problem, Should I define anything in my pwm_hall.h?? 

if I should define that i said, How to define that does anyone can tell me?? 

Thank you very much.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
484 Views

You need to create an Avalon slave interface and some logic in your circuit to decode the Avalon signals to set up the correct registers. You can't have your signals directly controlled by the CPU without some glue logic.

0 Kudos
Altera_Forum
Honored Contributor II
484 Views

 

--- Quote Start ---  

You need to create an Avalon slave interface and some logic in your circuit to decode the Avalon signals to set up the correct registers. You can't have your signals directly controlled by the CPU without some glue logic. 

--- Quote End ---  

 

 

Thank you for your suggest. 

I got it.
0 Kudos
Reply