현재 상태는, 시뮬레이션이 모두 완료된 상태이다.
이제 fpga에 AES module을 추가한 것을 올려야 되는데,
그 전에 변경한 소스가 아닌 원본을 먼저 올려볼 생각이다.
그래서 다시 원본 파일을 불러와서
./run.sh -5 -s hello-world가 잘 돌아가는 것을 확인하였다.
(-s는 spartan6 library를 쓴다는 것이다.)
그리고 ddr3를 Xilinx core generation을 통해 만들어서 넣어주었다.
해당 ddr3는 license때문에 amber에서 추가해 주지 않는다. 그래서
amber/trunk/hw/vlog/xs_ddr3에서 README.txt를 보고 Coregen으로
ddr3를 만든 뒤에 써있는 대로 수정을 해 주었다.(해당 파일은 dropbox에)
CentOS 6를 쓸 때에 해주라는 설정은 일단 넘기고 갔고 그 뒤도 넘겼다.
(In order to use Impact on CentOS 6, you need to install a USB driver.
sudo yum install libusb-devel
Then download and make the usb driver from http://rmdir.de/~michael/xilinx/
Once its successfully compiled run setup_pcusb to add the device IDs to the Xilinx installation.
You also need to install the fxload package
sudo rpm -i fxload-2008_10_13-3.el6.i686.rpm
And reboot after installing it.)
이 부분.....
그리고 bit file을 만들고 아래에 있는 것을 할 예정이다.
(Then power on the SP605 board and connect its USB-JTAG port to your PC.
Then run impact as follows
export LD_PRELOAD=/your-path/libusb-driver.so
impact
Impact should now be able to auto-detect the FPFA card. Right click on the FPGA and select the bitfile to load into it.)
자 일단 여기까지 했으면, 이제 bitfile을 만들 것이다.
그를 위해서 hw/fpga/bin에 들어가서
make new A25=1
이라고 명령어를 입력하면 자동으로 bit 파일을 만들어 준다.
그러면 hw/fpga/bitfiles 폴더에 bit파일이 생성된다.
이제 impact를 켜려면, opt/Xilinx/14.7/ISE_DS/ISE/bin/lin 에 들어가서
./impact를 하면 된다.
그리고 나서 fpga/flash에 있는 readme에 있는 대로 해주었다.
==================readme.txt=======================
Xilinx Flash/PROM - Write bitfile to SPI serial flash
The included file boot-loader-ethmac.mcs is a flash configuration file
for the SPI (serial) flash on the SP605 FPGA development board.
It contains the boot-loader-ethmac design. Here are instructions on how to create an mcs file
and how to load it onto the SP605 board. These instructions are for Xilinx ISE 14.5.
1. Start impact. Select Prepare a PROM file
Step 1. Select Storage Target
SPI Flash -> Configure single FPGA
Step 2. Add Storage Device
64M
Step 3
File Format MCS
Add Non_Configuration Files No
Select the bitfile to write
Would you like to add another device file to Revision:0 ? No
Impact Process->Generate File...
Impact creates an MCS file and says Generate Succeeded.
Then restart impact and select Boundary Scan flow
Right mouse on the FPGA and select Add SPI/BPI Flash
=> 여기서 module windrvr6 is not loaded. please reinstall the cable 라고 뜨면서 driver가 없다고 해서 그것에 대해 찾아보는 중...
http://www.silabs.com/products/interface/Pages/interface-software.aspx#cp210x 여기서 드라이브 설치함
(이것을 위해 자바 깔아야됨
* default-jdk
* ecj
* gcj-4.6-jdk
* openjdk-6-jdk
* gcj-4.5-jdk
* openjdk-7-jdk
)이것들 깔아보자. - sudo apt-get install
==> 그래도 안됨..
일단 sudo apt-get install portmap 을 해줌..
http://ubuntuforums.org/showthread.php?t=1547435&page=3
위의 것을 보고 해당 위치에 깔고 export 해줌.
//위에껀 다 쓸모없고 우클릭해서 일단 bit file을 다시 업로드하면 된다.
Select Attached SPI/BPI dialogue
SPI PROM -> W25Q64FV
Data Width: 1
Then a Flash device appears in the Boundary scan window attached the tje xc6slx45t FPGA.
Right mouse on the Flash and select Program
// 여기서 program 하려면 usb연결이 안된대서 usb 연결을 또 다시 찾고있음.
//http://www.george-smart.co.uk/wiki/Xilinx_JTAG_Linux 일단 이것을 참조하고 initialize chain을 누르면 자동으로 fpga가 뜨게 된다...
This takes a couple of minutes.
To use that image, you need the following switch settings on the SP605 board;
SW1 (the 2-switch block box near the red on/off power switch in the upper right corner of the board)
M0=on, M1=off
Then press the PROG button just below it to load that bitfile from the SPI flash into the FPGA.
To use the Parallel flash
M0=off, M1=off
Online tutorial for instructions with pictures -
http://www.digilentinc.com/Data/Documents/Tutorials/MCS%20File%20Creation%20with%20Xilinx%20ISE%20Tutorial.pdf