![]() |
![]() |
| ECE 351 Digital Logic laboratory |
Testing the
Altera Cyclone FPGA Board:
To test the Altera Cyclone FPGA board, a programming file is available that will exercise all of the input/output devices
on the Altera Cyclone FPGA board. Download the file test_module.sof (ZIP
format) to your computer, unzip it, and load the bit file onto the Altera Cyclone FPGA
board.
Observe the following:
The eight DIP switches (S1) cause the corresponding eight rightmost bar LED segments to illuminate when a DIP switch is in the ON position. The two leftmost bar LED segments are not affected by the DIP switch.
With no pushbuttons pressed, the decimal points on the four 7-segment displays will illuminate such that the decimal point will move from side to side, and when it reaches the end, the decimal point will change directions. The four 7-segment displays will also cycle the digits 0 through F. The digits fade in when they change value.
Pressing PB1 will cause a reset condition. Under this condition, the 7-segment displays will hold their current values and will be illuminated with full intensity. Only the decimal point of DS1 will be illuminated. All ten digits of the LED bar will be illuminated.
Pressing PB2 will cause each of the four 7-segment displays to spin. The displays will illuminate with full intensity.
With both S2-1 and S2-2 off (open), pressing PB3 will write the digital value on S1 to the DAC which is connected to the analog output BNC connector. The digital value will be displayed on the rightmost eight digits of the LED bar and DS1:DS2. The leftmost digit of the LED bar will also turn off. The DAC output should range from 0V to 2V.
With S2-1 on and S2-2 off, pressing PB4 will start a 1KHz counter. The output of this counter can be observed on the eight rightmost digits of the LED bar and DS1:DS2. The second to leftmost digit of the LED bar will turn off.
With S2-1 off and S2-2 on, pressing PB4 will read the ADC that is connected to the analog input BNC connector. The value will be displayed on the rightmost eight digits of the LED bar and DS1:DS2. The second to leftmost digit of the LED bar will also turn off. The analog input range is 0V - 3.3V.
With S2-1 on and S2-2 on, pressing PB3 and PB4 simultaneously will cause the analog output to reflect the value of as the analog input. The 4-bit analog out value will be displayed on DS2 and on the rightmost four bits of the LED bar, and the 4-bit analog in value will be displayed on DS1 and on the four bits of the LED bar to the left of the analog out value. The two leftmost digits on the LED bar will turn off. The analog input range on 0V - 3.3V should produce an analog output range of 0V - 2V.
|
Copyright © College of Engineering, University of Wisconsin-Madison Content By: morrow@engr.wisc.edu |