找回密码
 注册
关于网站域名变更的通知
查看: 313|回复: 1
打印 上一主题 下一主题

#技术风云榜#play with OpenRISC based atlys board(2)

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2020-11-27 10:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
本帖最后由 qsoiuwisjiuw 于 2020-11-30 15:58 编辑 9 |# K% Y, b. j+ D0 t

. q5 i: O( X. |2 Q# t  W3 Y9 X& v#技术风云榜#play with OpenRISC based atlys board(2)
3 x9 j( G7 N: a- B7 L6 D8 u. V5 S6 Z$ _0 T
#技术风云榜#play with OpenRISC based atlys board(1):(https://www.eda365.com/thread-469239-1-1.html)
$ \1 ?3 T. V, e' y- b' ]; L7 d9 A+ {5 f: T& r9 x
2.Digilent Atlys SPARTAN-6 development board3 d- K7 l# v1 T* h0 E3 w
Introduction
7 v6 d! l: H+ y+ {/ T( t6 J
8 b3 M& o% P4 O5 }0 TIt didn't take more than one day for the board to arrive. Here it is
' `, c& c) E/ b
) l1 y* B2 f* i! k# vand it looks like this:
; G$ K% k+ S/ z% B7 c3 T+ i! \, w% a" Q, q& w' `
The size of the board is 13.5 x 12 cm and it contains the following:
: e/ `: J* X0 X, ^% g  q* g
. i6 |) x( {7 j% P* H
  • Xilinx Spartan-6 LX45 FPGA, 324-pin BGA package
  • 128Mbyte DDR2 16-bit wide data
  • 10/100/1000 Ethernet PHY
  • On-board USB2 ports for programming & data transfer
  • USB-UART and USB-HID port (for mouse/keyboard)
  • Two HDMI video input ports & two HDMI output ports
  • AC-97 Codec with line-in, line-out, mic, & headphone
  • Real time power monitors on all power rails
  • 16Mbyte x4 SPI Flash for configuration & data storage
  • 100MHz CMOS oscillator
  • 48 I/O’s routed to expansion connectors
  • GPIO includes 8 LEDs, 6 buttons, & 8 slide switches
  • Ships with a 20W power supply and USB cable9 g0 R! M: K6 u& e. e

9 [# U4 b! \% J3 ?7 P& M# x0 A" J  J5 b) D
For more information see  Diligent webpage . 5 x( ?! M  r5 [% K- U7 ]* w" w

. g/ ]: ~. E0 s3 u3 M! EDocumentation
2 }; t8 {$ V" [: _7 C; z$ g" B: z% u, X% U4 T- h( [
The board comes without any documentation. All documents about the Atlys board can be downloaded from the Digilent support page . ! m% H1 P6 L4 P: j1 x0 S) n: F# O
3 ?0 s2 Z4 @. d2 f
Built-in self test6 {) C; O# z  U4 B; u
$ m$ s$ k& w5 I% Q. T, G
A demonstration configuration is loaded into the SPI Flash ROM on the Atlys board during manufacturing. This demo, also available on the Digilent website, can serve as a board verification test since it interacts with all devices and ports on the board. When the Atlys board powers up, if the demonstration image is present in the SPI Flash, the DDR is tested, and then a bitmap image file will be transferred from the SPI Flash into DDR2. This image will be driven out the HDMI J2 port for display on a DVI/HDMI-compatible monitor. The slide switches are connected to the user LEDs. The user buttons BTNU, BTND, BTNR, BTNL, BTNC, and RESET cause varying sine-wave frequencies to be driven on the LINE OUT and HP OUT audio ports. Here is the test setup.
6 t6 b$ l2 ~8 h9 d' o, Y; s" [8 c2 l! @# Z# h
Configuring the board) W8 l  t" E1 E  f& D
/ p0 s+ A( a2 w; [0 c, _0 W
After power-on, the FPGA on the Atlys board must be configured (or programmed) before it can peRForm any functions. The FPGA can be configured in three ways: a USB-connected PC can configure the board using the JTAG port any time power is on, a configuration file stored in the SPI Flash ROM can be automatically transferred to the FPGA at power-on, or a programming file can be transferred from a USB memory stick attached to the USB HID port. / \6 _; @5 a( p( i1 s; g

3 I$ P5 P  y+ ?7 T9 ^Design environment
; h; _$ _4 H1 e
: m8 w8 J; b. X$ K3 w2 TWe will use the Xilinx ISE Design Suite as our design environment for synthesizing designs and configuring the FPGA. For more information on how to download and install the Design Suite see this page.
. G# m4 m( T' q) C& `/ I0 K& w$ ]- z' d+ r5 r2 q, f7 `
Connecting the Atlys board to the computer( t, E4 X: l3 F( k: n
# }! v3 Y: O% |
It seems that one big hurdle when starting a new FPGA project is to setup the connection between the development board and the computer. I will take you through this process and hopefully we will get the board connected and be able to configure the FPGA. In this example I have Ubuntu 12.04 installed in VirtualBox running on my MacBook Pro, but the same setup will work for other Linux flavors and computers.  [0 X; d1 ^0 `  S

& _' W( c1 I2 m2 k+ {( x. KThere are two ways to connect the computer to the Atlys board:. @+ o* I; g1 e2 s6 A2 r
3 p& d* o. t1 Q3 V. A, A# ~* s  N
1. Using the Xilinx Platform Cable USB
! w! V7 Q& \* ]- X7 E
8 X9 f- O3 i( H$ S% B1 W% L7 ~2. Using a standard USB cable and the Digilent Adept system. : V  q+ I) i  T7 B' J8 s  f* Z
/ ^* |2 C9 V! ]( S  x6 [; x
The Digilent Adept system
+ A# G. v# b, @) e& n: O1 x3 x5 |4 i2 O
The Adept port is compatible with Xilinx's iMPACT programming software if the Digilent Plug-In for Xilinx Tools is installed on the host PC. The plug-in automatically translates iMPACT-generated JTAG commands into formats compatible with the Digilent USB port, providing a seamless programming experience without leaving the Xilinx tool environment. Once the plug-in is installed, the "third party" programming option can be selected from the iMPACT tools menu, and iMPACT will work as if a Xilinx programming cable were being used. All Xilinx tools (iMPACT, ChipScope, EDK, etc.) can work with the plug-in, and they can be used in conjunction with Adept tools (like the power supply monitor). We will use this method of connecting to the board because we don't need any extra hardware. Let's start by installing some software.
" e* U- B7 l% C! x) i' V
+ l! A8 x0 b4 P& R1 L2 o9 S' e+ x4 D7 h, m8 j9 m* j% g. w- f
Installing the Digilent cable drivers
3 \' {7 q/ W$ o& E7 @4 j( q% i$ D7 h: D9 p9 V0 m% l, Y# |
First we add these two sofware packages:
2 `4 ]7 |8 G2 N4 n( j6 @6 m1 d- I7 B3 c9 F3 u
  • sudo apt-get install libusb-dev
  • sudo apt-get install fxload- j6 I4 l( I3 i& O

; o- Z0 Z- D8 U+ n0 rNext we have to install the Digilent plugins. Xilinx provide these plugins in their installation directory but they are not activated. Here is what we have to do in Design Suite 14.2: ' D! e+ x4 `1 s. n' {. ?  F. [

" _  n7 u$ R) j! y; O4 KGoto to directory /opt/Xilinx/14.2/ISE_DS/common/bin/lin/digilent
3 p  B3 E- y* J1 L
6 Y7 j! z8 _4 tExecute the following command:
( ]) W* b# t( Y8 Z. _" p. J- ]' X; ^
sudo ./install_digilent.sh /opt/Xilinx/14.2/ISE_DS/ISE
- w4 o1 Q6 n; K. b- W4 ?8 Q8 s0 S9 t# ^% d' k5 m
The Digilent plugins are installed here.1 g$ U( j4 g- _" J" Q
( G: T' O7 u: Q# o4 j
The USB rules file 52-digilent-usb.rules is installed here:
' s2 \1 a2 R* r2 e9 V; E: V" r+ r8 G( i! T" D
The rules file
: h2 d/ s7 w" {% e) k- R
) n  y' w0 Y6 s, bThe problem with this rules file is that in can only be run when we are logged in as root. To fix this problem we have to edit the file and change all SYSFS to ATTR (three locations).
* R1 A6 k- x6 X) f
: H; N. {) Q0 v7 C. y9 n5 yAfter editing the file we have to reboot the system and we are ready to ride. If we are using VirtualBox we have to make sure the USB device is enabled in the Device menu. For older versions of Linux we have to change the first MODE=666" to MODE="666", GROUP="plugdev"6 j$ J5 i1 `& v9 h. B

% z) P& F. T: L. j6 ]2 w) xUsing iMPACT
* u# j4 t8 }2 ~" @' `
4 y. O8 G' D, _* l1 A& TLet's find out if we can identify the board using iMPACT. First we connect the USB cable from a USB port on our computer to the mini-USB prog port on the Atlys board. We power up the board and start iMPACT. Here is the iMPACT main window telling us that the board has been identified. ) }3 D5 O0 `' E# p9 S  i

3 M8 S+ N5 N) Z/ y! O5 `9 L9 t
* V! p2 ~. I; ~; C4 E
7 T& A$ S6 [) H1 y" o

该用户从未签到

2#
发表于 2020-11-27 13:24 | 只看该作者
给英语打call
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-24 20:52 , Processed in 0.140625 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表