Forum Discussion

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

The problem of component editor

hello!

I meet a trouble when I learn how to edit a new component.I add a new component "pwm_motor" to the SOPC builder,but the output port pwm_out's signal type should be export.but it isn't in there.there are only

"address","begintransfer","begintransfer_n","beginbursttransfer"

,"beginbursttransfer_n","burstcount","byteenable","byteenable_n","chipselcet"

,"chipselect_n"."dataavailable";"dataavailable_n","endofpacket","endofpacket_n"

,"read","read_n","readdata","readdatavalid","readdatavalid_n","readyfordata",

"readyfordata_n","resetrequest","resetrequest_n","waitrequest","waitrequest_n",

"write","write_n","writebyteenable","writebyteenable_n","writedata".

which one should I select?

http://b31.photo.store.qq.com/http_imgload.cgi?/rurl4_b=b579f8b54f494fc69149a5de70a1aee9525a8dc0aec6f071086ad0511d279b76f26650015bc8c651abb687fb654ccfbb40811e89d5f379235989468c50032e460666793ce3f7be14837640b350b3307df29742f3&a=32&b=31

please help me!

thanks in advance!

4 Replies

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

    Hello,

    The signals you quoted are for an Avalon Memory Mapped Slave. In the component editor, under the "interfaces" tab, add click on "Add Interface", and for this interface select the type "Conduit".

    Now in the "Signals" tab, you add a signal, on column "Interface" select the conduit, and now in signal type you will find "export".

    Jérôme
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I make it,thank you for your seggestion.

    could you give me some data of the "interfac" and "signal type",I don't understand them.

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

    Hello,

    I don't understant really what you expect. Join, I put an example of a component with a clock input interface, an avalon MM slave, and a conduit. There are the interface tab and the signals tab.

    If you want details about the interface and signals, cf the avalon interface specification which explain the role of each one (http://www.altera.com/literature/manual/mnl_avalon_spec.pdf) (http://www.altera.com/literature/manual/mnl_avalon_spec.pdf%29).