Forum: FPGA, VHDL & Co. LatticeMico32: Opencore CAN


von Keller T. (fabito)


Lesenswert?

Hi team,

I spend the whole day trying to connect the opencore CAN to 
LatticeMico32 without sucess.
As you know opencoreCAN doesn't have the signal wb_sel_i and this signal 
mandatory by creating custom component.
For that I moved forward with the signal and then I commented it within 
the top file as follow.

          // Instantiate user's custom module
          can_top instantiate_can_top (

                // Connect Wishbone slave
               .wb_adr_i(wb_ADR_I),
               .wb_dat_i(wb_DAT_I),
               .wb_we_i(wb_WE_I),
               //.wb_sel_i(wb_SEL_I),
               .wb_stb_i(wb_STB_I),
               .wb_cyc_i(wb_CYC_I),
               .wb_dat_o(wb_DAT_O),
               .wb_ack_o(wb_ACK_O),

                // Connect External signals
               .rx_i(rx_i),
               .tx_o(tx_o),

               .wb_clk_i(wb_clk_i),
               .wb_rst_i(wb_rst_i),
               .irq_on(wb_int_o) );


I then try to write to the CAN Control Register without success.
No possibility to access the CAN Component

1
  // turn on reset mode
2
    OPENCORECAN_REGISTER(OPENCORECAN3_BASE_ADDRESS, CAN_CONTROL_REG)=0x1F;
3
4
with
5
6
/* macro for reading/writing registers */
7
#define OPENCORECAN_REGISTER(BASE,OFFSET) *((volatile unsigned char *)(BASE + OFFSET))


So please, is there any trick helping me to move forward?

von Duke Scarring (Gast)


Lesenswert?

Ngii Rayan schrieb:
> So please, is there any trick helping me to move forward?
Learn to simulate your designs.

Duke

von Keller T. (fabito)


Lesenswert?

Thanks for your response,

But as you know sometimes it is assumed that the IP Core is functional. 
And I don't have enough time for my Internship that is the reason. For 
this reason I asked for any tricks

von Duke Scarring (Gast)


Lesenswert?

Simulation is the trick to find the reason for such problems.

Duke

von Keller T. (fabito)


Lesenswert?

OK Thanks for your advice I will try and let you know later

von Lupi Digitalus (Gast)


Lesenswert?

Try to get in touch with the local Lattice people in Germany 
(ceurosales@latticesemi.com).
I'm pretty sure they can help you with your problem.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.