This page deals specifically with MURC for the DE2-115. Please contact the Manalis lab for information on MURC for the DE4-530.
Obtaining the necessary software
First things first, you have to get the software running on the FPGA. You will need:
- three binary files – a .pof file, a .elf file, and a .sopcinfo file.
- the labview VIs for communicating with MURC over ethernet
- quartus II web edition, available here (need to create an altera account).
- Labview 2010 or newer. You can also write your own code to communicate with the board but these make it quite easy.
Coming, soon, you will be able to download (1) and (2) directly. In the meantime, please email us to obtain these binaries and labview VIs.
Setting up the DE2-115
1) Plug in the power to the DE2-115.
2) Connect the USB cable to the “Blaster” USB port and to the computer.
3) Attach the Data Conversion Card (DCC) to the DE2-115’s HSMC slot.
4) Set the jumpers on the DCC. They should be jumpered 2-4 and 3-5 across all J3, J7, J15, J17, J23.
5) Use an SMA cable to connect either a 100 MHz external clock (for example, an oven controlled crystal oscillator, we use an Abracon AOCJY2) or SMA_CLKOUT on the DE2-115 board to EXT_CLK_IN_P on the DCC. (SMA_CLKOUT will be programmed to output a 100 MHz clock.)
6) Set SW19 to ‘program’ (not run) in order to write the code to non-volatile flash memory.
7) turn board on.
Now we write the software to non-volatile memory on the DE2-115.
First we write the FPGA hardware:
8) Make sure the correct USB drivers are installed – you may need to do this manually. The drivers are located in your altera quartus II install location. at …/altera/12.1/quartus/drivers.
9) Open Quartus II, open programmer.
10) Set mode to active serial programming
11) add file – DE2_115_WEB_SERVER.pof
12) check boxes for ‘program/configure’ and ‘verify’
13) click start
14) after its done, turn off the board, turn SW19 to run, and turn board back on. Close quartus II and the programmer, we’re done with them. At this point the 7-segment LEDs should light up as 8s if the CPU is working and receiving a clock signal. If the 7-segments do not light up, something is likely wrong with the clock path (check steps 3-5).
Now we write the code that will run on the Nios II CPU:
15) Open nios II IDE. It doesn’t matter what the workspace is set to.
16) On the top menu bar, select Nios II / Flash programmer.
17) In the window that pops up, select File / New.
18) For SOPC Information file, select DE2_115_SOPC.sopcinfo. Hit okay.
19) Hit connections, select ignore mismatched timestamp, hit okay.
20) Hit add button – select smr_controller.elf
21) Click start. If no errors (red text) show up, you’re done. The board is ready to run.
Now it’s time to connect to the board via Ethernet.
22) Make sure your computer is connected via ethernet to Ethernet 0 on the DE2-115 board.
23) Power cycle the board.
24) You will need to modify the properties of the ethernet adaptor that is connected to the DE2. It needs to be set to a fixed IP – 192.168.100.1
25) Load SmrDriverClient.vi and run it. If something pops up in the TCP connection messages, you’re connected!