#--------------------------------------------------------------------------
# Board description
# For raw board handling, use:
# BD Board_type Board_address
# For HUNT ENGINEERING's Device Driver API use:
# BD API        Board_type      Board_Id        Device_Id 
#--------------------------------------------------------------------------

# this example assumes 2 boards, one hepc9 with switch 0, the
# other hepc9 with a switch set to 1.

BD API hep9a 0 0
BD API hep9a 1 0

# When using Code Composer Studio, a node must be given a CC-id. This
# id tells the Server/Loader where the node is located in the JTAG
# chain. If e.g. you have 3 processors, the node at the end of the
# chain is CC-id 0, the middle one is CC-id 1, and the node closest
# to the board interface (usually in slot 0) has CC-id 2. The reason
# for all this is that the JTAG scan path is not mapped one-to-one
# to the communication network.
#-----------------------------------------------------------------------
# Nodes description
# ND  BD_nb  ND_NAME  ND_Type  CC-id HERON-ID  filename(s)
#-----------------------------------------------------------------------

# Modules on board 0:
  c6   0      MODa     ROOT     (1)    0x01  module1.out
  pcif 0      hosta    normal          0x05
  em2  0      em2a     normal          0x06

# Modules on board 1:

  c6   1      MODb     ROOT     (0)    0x01  module2.out
  pcif 1      hostb    normal          0x05
  em2  1      em2b     normal          0x06

#---------------------------------------
# Define the EM2a <-> EM2b connection
#---------------------------------------

BDCONN EM2a 0  EM2b  0

#-------------------------------------------------------------------------
# The actual HEART programming statements. Used by both Server/Loader and
# HeartConf. 
#       from:slot  fifo  to:slot   fifo    timeslots
#-------------------------------------------------------------------------

# Create a connection between host (fifo 0) and the 'C6x (fifo 0). It uses
# 1 timeslot. The precise timeslot is chosen by Server/Loader or HeartConf
  heart      hosta   0      moda      0       1

# And create a connection back, from the 'C6x (fifo 0) to the host (fifo 0)
  heart      moda    0      hosta     0       1

# Create a duplex connection between boardb host and module
  heart      hostb   0      modb      1       1
  heart      modb    1      hostb     0       1

# Create a link between the two processors
  heart      moda    2      modb      0       1
  heart      modb    0      moda      2       1

