Home
CAN IP (precan_opb), v1.1 - With OPB interface Prevas AB Features
Contents
1. using the XA3S1600E ECU development board from Si Gate Instantiation templates Reference designs amp application notes Additional Items Xilinx XPS peripheral description files pao mpd Simulation Tool Used Modelsim v6 1c Support provided by Prevas AB Applications The Prevas CAN Controller IP core targets many CAN communication applications like Automotive networks E Industrial control networks E Sensor monitoring and actuator control E Other embedded systems with CAN capabilities General Description The CAN Controller IP implements to the ISO 11898 1 CAN 2 0B protocol It takes care of all transfer layer protocol tasks like message framing message arbitration error signaling and fault confinement and automatic retransmission due to tx faults or loss of arbitration TX RX FIFOs of configurable depth and message filters provides message buffering and filtering and decreases the load on the local CPU Max bus speed for CAN networks according to the standard is 1 Mbit s This CAN controller can however support bus speeds above 1 Mbit s for special applications MHz min max external total Spartan ax xcaszo0a 5 94 6esssss 2 19 2 SE 10 1 031 2 Spartan ax XA3S500E 4Q 89 6a7s28 2 1 5 2 Product Specification OPB_Clk F OPB_Rst OPB_ABus 0 31 OPB_DBus 0 31 OPB_Select OPB_RWN OPB_xferAck precan_irq CAN Controller oprecan_opb v1
2. Prevas Prevas AB PO Box 4 Legeringsgatan 18 SE 721 03 V ster s Sweden Phone 46 21 360 19 00 Fax 46 21 360 19 29 Email johan ohlsson prevas se URL www prevas se Features E Compliant with ISO 11898 1 CAN 2 0B protocol Supports bus speeds above 1 Mbit s Overload frames on CAN bus are recognized and handled but not transmitted by this core E TX and RX FIFOs with configurable depth of up to 64 messages each E RX message filtering Number of filters can be set from 0 2 by generic parameter Loop mode for diagnostic purpose Maskable interrupts Readable error counters Single clock fully synchronous design Seamless interface slave port to On Chip Peripheral Bus OPB bus for easy integration with Xilinx MicroBlaze and IBM PowerPC in Xilinx devices The Prevas CAN Controller IP Core provides a flexible solution which may be implemented in all Xilinx Spartan 3 3A 3E and Virtex Il Il Pro 4 5 device families See examples in the table below The slice count depends on the selected FIFO depths and number of message filters The figures shown are min max values Table 1 Example implementation statistics CAN IP precan_opb v1 1 With OPB interface Product Specification ORE Facts i User s Manual Data sheet this document i VHDL Source RTL onstraint Files Verification VHDL test bench delivered with core CAN protocol compliance tested according to IS016845
3. 1 TX RX Figure1 Prevas CAN Controller IP core Block diagram Functional Description The figure above shows a high level block diagram and the major data flow of the CAN Controller The TX and RX signals should be connected to an external CAN transceiver chip A description of the sub modules follows CAN core The CAN core is responsible for all transfer layer functions of the CAN protocol and consist primarily of a control unit bit stream processor error handler and bit synchronization unit Control unit The control unit is supervisor of the other modules in the CAN core and handles the overall node behavior depending on the node state i e if the node is in init mode error active error passive or bus off and if the node is receiver or transmitter of the current message Bit stream processor The bits stream processor BSP takes care of message data serialization and de serialization framing and format tasks During transmission these tasks are e Insert fixed form bits in the message frame e Insert stuff bits e Calculate CRC and append CRC bits to the outgoing message stream e Perform bus arbitration e Monitor the transmitted bits to detect bit errors e Automatic retransmission of the message in the case of a transmission error or if arbitration was lost During reception of a message similar tasks are performed in an opposite way There are also several other error checks e Remove and check val
4. ditional cost Customers may also modify the RTL source code at own responsibility Verification Methods The CAN Controller core s functionality has been extensively tested with a test bench which is also delivered with the core The functionality has also been verified in accordance with the IS016845 2004 Road vehicles Controller area network CAN Conformance Test Plan This compliance test has been performed by C amp S Group Germany Ordering Information This product is available from Prevas AB under terms of the SignOnce IP License See www prevas se for pricing or contact Prevas for additional information about this product Prevas AB PO Box 4 Legeringsgatan 18 SE 721 03 Vasteras Sweden Phone 46 21 360 19 00 Fax 46 21 360 19 29 Email johan ohlsson prevas se URL www prevas se Prevas AB cores are purchased under a Licence Agreement copies of which are available on request Prevas AB retains the right to make changes to these specifications at any time without notice All trademarks registered trademarks or service marks are the property of their respective owners Related Information Xilinx Programmable Logic For information on Xilinx programmable logic or development system software contact your local Xilinx sales office or Xilinx Inc 2100 Logic Drive San Jose CA 95124 Phone 1 408 559 7778 URL www xilinx com
5. gisters is the interface for an external micro controller Refer to the user manual for description of the registers All registers are 32 bit wide addressed at word boundaries and represented in big endian format Bit 0 is MSB bit 31 is LSB Description OPB Clk IN OPB Rst IN OPB_ABus 0 31 IN OPB_DBus 0 31 OPB selest select OPB_RWN Transfer type 1 Read cycle 0 Write cycle OPB OPB_BE O3 3 Address bus Write data bus Active high reset CAN Controller oprecan_opb v1 1 TX RX FIFO Separate storage buffers for transmit and receive message are provided in a FIFO structure The depth of each buffer is individually configurable through generic parameters and may be up to 64 messages each RX filter IDs of incoming messages are compared with user defined ID acceptance masks If there is a match the message is stored in the RX buffer If no match is found the message is just acknowledged and then discarded The number of acceptance filters is defined with a generic parameter which may be set from 0 to 2 If no acceptance filter is used all successfully received messages are stored in the RX buffer User interface The user interface of the CAN controller is a subset of the OPB signals as defined in the Xilinx document OPB Usage in Xilinx FPGAs march 2002 These signals provide a seamless interface slave port for easy integration with Xilinx MicroBlaze and IBM PowerPC in Xil
6. inx devices The controller is regarded as a slave device on the OPB bus The table below describes the signal interface System clock Minimum 24 MHz beaten Cl Active high module select N Not used all registers are addressed at word boundaries od Leal used PRECAN_DBus 0 31 Read data bus PRECAN_xferAck Active high transfer acknowledge Not used tied to GND Not used tied to GND Not used tied to GND PRECAN retry RX data from CAN transceiver Table 2 Core I O signals Product Specification Design parameters A number of generic parameters can be used to tailor the design to specific application needs for optimum performance The value of these parameters has some impact on the resource utilization of the IP see table 1 Parameter C BASEADDR C_HIGHADDR C_RX_FIFO_DEPTH C_TX_FIFO_DEPTH 4 Description X 00000000 Base address for the peripheral X 0000007F High address for the peripheral The desired depth of the RX buffer in number of messages Settings 2 64 are valid The desired depth of the TX buffer in number of messages Settings 2 64 are valid CAN Controller oprecan_opb v1 1 Design Services Prevas also offers core integration core customisation and other design services C NR OF FILTERS The desired number of receive filters Settings 0 2 are valid Table 3 Core generic parameters Core Modifications More features may be added to the core at request and ad
7. ue of fixed form bits to detect form errors e Remove stuff bits and check for stuffing errors e Calculate CRC of the incoming message and compare with received CRC e Acknowledge successfully received messages by transmitting a dominant bit in the ACK slot of the CAN frame Error handler Any errors detected by the BSP are signaled to the error handler which is responsible for fault confinement and transmission of error frames It updates its transmit and receive error counters in accordance with the ISO 11898 1 CAN 2 0B standard and based on the value of these counters determines the error state of the controller active passive or bus off Product Specification Bit synchronization The bit synchronization module has the following functions e Clock pre scaling e Synchronizing the CAN core to the traffic on the CAN bus e Place TX bits on the bus with the correct timing e Calculate the sampling point and provide a sample clock to the rest of the CAN core e n loop mode the core is disconnected from the CAN bus i e only recessive bits are transmitted and the bits transmitted by this node is instead routed back to the receive input Incoming data from the CAN bus is ignored e Bit error detection The synchronization process compensates for propagation delays and oscillator frequency differences between the transmitting and receiving nodes Configuration and status registers The configuration and status re
Download Pdf Manuals
Related Search
Related Contents
View the manual F115 / LF115 Owner`s Manual Livret de l`étudiant en Formation À Distance (FAD) Copyright © All rights reserved.
Failed to retrieve file