Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Re: CAN controller VHDL code

 
Thread Tools Search this Thread
Old 08-06-2003, 09:43 AM   #1
Default Re: CAN controller VHDL code


"Markus Sponsel" <> wrote in message news:<bgktt5$pqok5$>...
> hamed wrote:
> > Hi.Can anynoe help me to find a correct VHDL code for CAN DataLink
> > layer? I want it as a guide to write my own code.(It is not for
> > commercial use) Thanks&bye

>
> opencores.org has a finished CAN controller project. Though I don't
> know whether it works and/or supports all modes it may be a good
> starting point. But if you insist building your own code, why don't
> you download the CAN specification and build your own controller
> from scratch?
>
> best regards,
>
> Markus Sponsel
>
> ========================================
> profichip GmbH
> Einsteinstraße 6
> 91074 Herzogenaurach
> Germany

============================================
Thanks for your attention Markus.The CAN code you mentioned is
written by
Mr Shehrayar Shahin and he has send it to me via emial.But it is not
tested yet and it is not so readable for me( I can't understand the
characteristics of CAN by studing this code ).I have downloaded the
CAN specification ( CANA and CANB ) and I have studied them but still
some properties of CAN are not obvious for me.( For example I have
some questions about Error handling and synchronization of nodes
).That's why I need some thing more usefull and reliable.( A correct
and reliable code or an article which describes CAN in more details )

best regards

Hamed pishvayazdi


hamed
  Reply With Quote
Old 08-06-2003, 12:59 PM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: CAN controller VHDL code
"hamed" <> wrote in message
news: om...
> Thanks for your attention Markus.

[...]
> That's why I need some thing more usefull and reliable.( A correct
> and reliable code or an article which describes CAN in more details )


Take a look at http://www.mjschofield.com/. It will be much
more helpful than trying to understand a CANbus core.

I agree that the error management in CAN is complicated,
but you are wrong if you complain that it's not CLEAR from
the spec - it is very clearly specified indeed. Sorry
to bring bad news, but you've simply got to go away and
sit in a quiet corner somewhere and read the spec carefully
until you understand it.

Good luck
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * Perl * Tcl/Tk * Verification * Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail:
Fax: +44 (0)1425 471573 Web: http://www.doulos.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.





Jonathan Bromley
  Reply With Quote
Old 08-06-2003, 07:43 PM   #3
Mike Treseler
 
Posts: n/a
Default Re: CAN controller VHDL code
hamed wrote:

> Thanks for your attention Markus.The CAN code you mentioned is
> written by
> Mr Shehrayar Shahin and he has send it to me via emial.But it is not
> tested yet and it is not so readable for me( I can't understand the
> characteristics of CAN by studing this code ).


No matter how well written core code is,
I can only completely understand a non-trivial
synth entity with the help of simulation waveforms.

Compile and Run the testbench, study the transactions,
then read the spec.

-- Mike Treseler



Mike Treseler
  Reply With Quote
Old 07-31-2008, 05:48 AM   #4
shajeel
Junior Member
 
Join Date: Jul 2008
Posts: 1
Default
hi,

could you plese get me VHDL code for CAN controller with supporting documents. i tried in opencores.org but it was in verilog HDL.
please send me the link or code to or

thankz in advance

regs
shajeel


shajeel
shajeel is offline   Reply With Quote
Old 08-14-2008, 08:07 PM   #5
jgauthier68
Junior Member
 
Join Date: Aug 2008
Posts: 3
Default Simulation CAN Opencore Verilog
Hi!

I'm a little bit in the same situation. I've downloaded the CAN Bus opencore in Verilog format but I encounter some difficulties to simulate the core with ModelSim Altera web edition.

As soon as I want to simulate my testbench with "vsim" command, Modelsim says:


** Error: (vsim-3033) D:/00 - Harware Project/can/rtl/verilog/can_fifo.v(291): Instantiation of 'lpm_ram_dp' failed. The design unit was not found.
# Region: /can_testbench/i_can_top2/i_can_bsp/i_can_fifo
# Searched libraries:
# work


So, it seems to search the "work" library but if I type "vlib work", I see this message:

# ** Warning: (vlib-34) Library already exists at "work".

Where is the problem?! I really need to simulate the code to help me to understand how it work!!!

Thanks in advance!


jgauthier68
jgauthier68 is offline   Reply With Quote
Old 10-06-2008, 06:42 AM   #6
priyankasri_1
Junior Member
 
Join Date: Oct 2008
Posts: 1
Default help me with VHDL code for CAN controller
[FONT=[/i][/b][/b]]hi!!
i m a b.tech final year student working on project CAN controller can u send me the VHDL codes for CAN controller
regards
srivapriyanka











[/font]
Quote:
Originally Posted by hamed
"Markus Sponsel" <> wrote in message news:<bgktt5$pqok5$>...
> hamed wrote:
> > Hi.Can anynoe help me to find a correct VHDL code for CAN DataLink
> > layer? I want it as a guide to write my own code.(It is not for
> > commercial use) Thanks&bye

>
> opencores.org has a finished CAN controller project. Though I don't
> know whether it works and/or supports all modes it may be a good
> starting point. But if you insist building your own code, why don't
> you download the CAN specification and build your own controller
> from scratch?
>
> best regards,
>
> Markus Sponsel
>
> ========================================
> profichip GmbH
> Einsteinstraße 6
> 91074 Herzogenaurach
> Germany

============================================
Thanks for your attention Markus.The CAN code you mentioned is
written by
Mr Shehrayar Shahin and he has send it to me via emial.But it is not
tested yet and it is not so readable for me( I can't understand the
characteristics of CAN by studing this code ).I have downloaded the
CAN specification ( CANA and CANB ) and I have studied them but still
some properties of CAN are not obvious for me.( For example I have
some questions about Error handling and synchronization of nodes
).That's why I need some thing more usefull and reliable.( A correct
and reliable code or an article which describes CAN in more details )

best regards

Hamed pishvayazdi


priyankasri_1

Last edited by priyankasri_1 : 10-06-2008 at 07:04 AM.
priyankasri_1 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
plz post the vhdl code for dma controller 8257 with description(very urgent.....plz) vijaygubba General Help Related Topics 0 02-04-2008 02:31 PM
VHDL code for SPI Master shah_satish2002 Hardware 2 07-22-2007 08:12 PM
vhdl code for bidirectional transceiver qtr General Help Related Topics 0 07-05-2007 05:00 PM
Writing Register code in vhdl amirster Hardware 2 06-11-2007 03:22 PM
vhdl code amirster Hardware 0 05-10-2007 07:28 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46