Forum Discussion

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

Opencore CAN 2.0 Avalon Interface

Hi,

Please I intend to add a custom component (opencore CAN 2.0B) but I am concerned with the type of Avalon Bus I should use for that:

Avalon Memory Mapped Interface (Avalon-MM)

or

Avalon Memory Mapped Tristate Interface

I would appreciated any advices.

Regards,

4 Replies

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

    You can do either.

    The CAN component available on OpenCores website, can be configured for Wishbone bus or standard 8051 bus interface.

    Wishbone can be easily connected to Avalon MM with minimal glue logic. Same for 8051 bus to tristate bus.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ok Chris,

    I have seen what you means within the file can.defines:

    
    // Uncomment following line if you want to use WISHBONE interface. Otherwise
    // 8051 interface is used.
    // `define CAN_WISHBONE_IF
    

    As I intended to use Wishbone Interface:So I just have to use the Memory Mapped Slave Interface and the same Glue Logic formel as mentioned on the wiki site.

    Am I wrong?

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

    You are right.

    You must accomplish two steps :

    - write a simple wrapper code to convert Wishbone to Avalon

    - create the sopc builder component