Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

NIOS2 avalon bus user peripherals question

Status
Not open for further replies.

addn

Member level 1
Joined
Apr 8, 2006
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,482
avalon nios2

hi,

i have completed a simple test of 8 bit output port (Custom Peripherals)

and embedded in NIOS2 system

how to access it by NIOS2 IDE C

thanks
 

nios2 avalon bus

addn said:
hi,

i have completed a simple test of 8 bit output port (Custom Peripherals)

and embedded in NIOS2 system

how to access it by NIOS2 IDE C

thanks


you may genertare GPIO in SOBC Builder.
that GPIO will interface the Avalon bus; then you connect your logic-block to it.

The other effiecnt way is an option in SOBC Builder which allows you to interface your block to Avalon by adding it. In this step you should match the port of the block to the Avalon ports.
 

nios 2 bus

addn said:
hi,

i have completed a simple test of 8 bit output port (Custom Peripherals)

and embedded in NIOS2 system

how to access it by NIOS2 IDE C

thanks

If your system is generated by SOPC builder and synthetized by Qu@rtus, create new project under NIOS II IDE and build system library. Then you can find file "system.h" in your "projectname_syslib\Debug\system_description" folder. This file contains all definitions of peripherals used. For my custom pripherals, I'm using simple access through pointers.

Hope this hepls.
Regards Pavel.
 

    addn

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top