ValentFX Mark 1 FPGA Starter Manual Download Page 6

 

P a g e

| 4  

 

2.

 

The board will come alive and you will see little green LEDs glowing on it.  After a few seconds you will see LED DC17 
start flashing if the board already has a configuration file setup on it.  This means the NPX microcontroller is configuring the 
FPGA.  Once the configuration is done you will see DC17 stop flashing and change to solid green.  This means the FPGA is 
configured and running its program.  

3.

 

Once the Mark 1 is connected to your computer Windows will try to install the appropriate device driver.  This should 
succeed without any issues.  When it does, you will see a new Removable Disk in Windows Explorer as shown in Figure 3.  

 

 

 

Figure 3 – New Device Appears in Windows Explorer 

4.

 

On the removable disk you will see pre-compiled programs that come saved on the Mark 1’s non-volatile memory. 

 

 

 

 

 

 

 

Figure 4 – Files Factory Preloaded Onto the Mark 1 Board as Shown in Windows Explorer 

5.

 

The file “config.bit” is the file the NPX microcontroller is looking for to load onto the FPGA at boot time.  
“Config.bit.original” is a backup of the demo program shipped with the Mark 1. 

6.

 

To make the system load a totally different FPGA configuration on boot up, simply delete the “config.bit” file and replace it 
with a .bit file of your choosing.  Just make sure the file that is used for a replacement is named “config.bit.”  It’s as simple as 
that.  No special programmer hardware needed.  Later in this guide we will show you how to make the Xilinx ISE generate a 
.bit file from your custom design.   

7.

 

But, for demonstration purposes let’s have the FPGA run a more interesting program.  After deleting the “config.bit” file that 
is shipped with the board, use Windows Explorer to make a new copy of “led_counter_i2c_buffered.bit.”  If you’re using 
Windows 7, highlighting the file and doing a Copy, Paste will generate a copy of the file called “led_counter_i2c_buffered - 
Copy.bit.”  Make a copy of the file before renaming it in the interest of preserving this example design for later use. 

8.

 

Now rename “led_counter_i2c_buffered - Copy.bit.” to “config.bit.” 

9.

 

The final step is to reset the board – just push button PB5. 

On system reset you will see the NPX microcontroller start configuring the FPGA with the config.bit file you just chose.  Once it’s 
done configuring, you will immediately see LEDs 0 through 7 on the edge of the board start dancing wildly.  Each LED represents a 

bit

.  Because there are 8 LEDs total these LEDs can display 256 unique combinations. What they are actually doing is a very rapid 

binary counting

 sequence from 0 to 255 in about three seconds.  When the sequence finishes it just starts over.  Note that the 

least 

significant bit 

is LED 0 and the 

most significant bit

 is LED 7.   

This demo is a very simple example of what’s possible on this FPGA platform.  With a little more learning and 

HDL 

code 

development, you can be on your way to blinking lights in your own sequence in no time! …Or reading MP3s off your SATA 
connected, terabyte hard drive while playing the audio and displaying a visualizer! …For example. 

4.

 

Developing Your Own Design 

Now that you have a bit of FPGA background we will move on to the hands-on part of this instruction.  In the following sections you 
will learn what is required to actually design and build your own FPGA configuration and then run it on the hardware.  The example 
design given below is rather simple, but seeing the major FPGA software development concepts and workflows that are exposed 
through this tutorial will be instrumental in understanding the big picture.  

 

Summary of Contents for Mark 1 FPGA

Page 1: ...Valent F x Logi Family By Andy Gikling asgikling gmail com v1 0 6 1 2013 A brief beginner s guide to the Mark 1 FPGA platform...

Page 2: ...nt Environment 5 4 2 Create Your First Project 6 4 3 Add Some Logic to Your Project 7 4 4 So What Does This Simple Program Do 10 4 5 Constraining the Design 11 4 6 Build Your Project 13 4 6 1 Errors 1...

Page 3: ...ock signals to keep things synchronized It s really best to think about the logic on the FPGA s fabric as a physical circuit In computing applications that run on processors people are normally accust...

Page 4: ...of small LEDs A more trained eye will see two SATA headers a JTAG interface and even a small square microcontroller by NPX Semiconductor You will notice a number of other headers on the board The ones...

Page 5: ...ry However these devices are normally called complex programmable logic devices or CPLDs CPLDs differ in several other ways from FGPAs and are designed to do different things than FPGAs Fundamentally...

Page 6: ...dows Explorer to make a new copy of led_counter_i2c_buffered bit If you re using Windows 7 highlighting the file and doing a Copy Paste will generate a copy of the file called led_counter_i2c_buffered...

Page 7: ...ther long document is the official Xilinx Install Guide Consult it if you have problems with the ISE installation When the installation completes open the Xilinx ISE you will most likely find it in yo...

Page 8: ...te Your First Project In this tutorial we will be using the Mark 1 hardware to create a working Verilog HDL design We will keep the physical goals simple in order to demonstrate the basics In the foll...

Page 9: ...rs will be familiar with the standard set of menu items located across the top of the screen File Edit View Project Source Process Tools Window Layout and Help all contain items that fit their respect...

Page 10: ...icking next you are presented with a GUI that lets you define the module s input and outputs It s convenient to think of Verilog HDL modules as chips on a circuit board Typically a chip has a number o...

Page 11: ...s highlighted Things marked in green are comments blue are Verilog language keywords and the pink at the top used to denote the module s timing information for simulating the design we re not going to...

Page 12: ...the module s definition line 29 we ve defined a register that is one bit wide called LED_reg registers like this can be defined as multi bit registers if desired This register can store the state of o...

Page 13: ...the FPGA s outputs to the bank of LEDs found on page 5 of the schematic Clearly when the L7 output changes to a logic high level current will flow through the LED0 to Ground and the LED will illumina...

Page 14: ...o there is a huge amount of information to know surrounding how to constrain designs but fortunately for us our design only needs to constrain a handful of items to work properly this design is so sim...

Page 15: ...see the pins official name next to the input These match what s written in the comments of the constraints file This is common practice For example our design uses LED0 This LED is connected to pin 4...

Page 16: ...process This is because when designs get very large these discrete steps can take hours An engineer would not like to have to re run every step of the compilation process if it s not necessary The fol...

Page 17: ...ages You will find that when you re new to a programming language working through compiler errors teaches you about what s allowed and what s not allowed slowly but effectively However in general it s...

Page 18: ...e there will be many more projects like the above to come If you are a more advanced user you will likely be using a host platform in your design already ValentF x has plans to release an official int...

Reviews: