OpenCores
URL https://opencores.org/ocsvn/xenie/xenie/trunk

Subversion Repositories xenie

[/] [xenie/] [trunk/] [examples/] [Eth_example/] [outputs/] [create_mcs_marvell_only.tcl] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 DFC
#
2
# Result of this script is mcs with FW for marvel PHY
3
# with header prepended. Header is used to by MB
4
# when reading FW from flash.
5
#
6
# Script is supposed to be placed in outputs directory.
7
# It is independent of opened project.
8
#
9
 
10
# Offset where in flash firmware shall be placed.
11
# Usually it must be after FPGA bitstream
12
set marvell_fw_flash_offset  0x800000
13
 
14
set origin_dir [file normalize [file dirname [info script]]]
15
 
16
 
17
# prepend header to marvell FW that will be used during read
18
# It creates file marvell_fw_hdr.bin in res folder
19
source $origin_dir/prepend_header_to_marvell_fw.tcl
20
 
21
 
22
# Interface SPIx4 or SPIx1 doesn't metter
23
# size is in megaBYTES so flash s25fl256 is 32MB long
24
 
25
write_cfgmem -force \
26
      -format mcs \
27
      -interface SPIx4  \
28
      -size 32 \
29
      -loaddata "up 0x00800000 $origin_dir/res/marvell_fw_hdr.bin" \
30
      -file "$origin_dir/res/marvell_only.mcs"
31
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.