Download presentation
Presentation is loading. Please wait.
1
3-bit calculator using 7-segment LEDs
7-Segment Controller 3-bit calculator using 7-segment LEDs Inhwan Lee, Youngtaek Oh, Daehyun Ahn (inhwan301, koyt1126, April 3, 2017 1/9
2
Decimal to Binary Decoding
Outline Decimal to Binary Decoding Input : Two operand(0~7) Output : 7-segment in double figures 3-bit Adder
3
Input Using Bus Switch Mapping each switch to one digit (0~7) 2/9
4
Decoding input to Binary
Input using 8 switches representing 0~7 Need to decode inputs to binary to use 3-bit adder Input Output Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 1 3/9
5
‘parameter’ command in Verilog
Method to define constant in module Can’t use as a variable Make readability higher 4/9
6
3-bit calculator Use Codes from Week4’s Lab 5/9
7
Output 7-Segment LED Array
Cannot use multiple 7-segments at once because constraint of the number of I/O pins Input each digit segment from a to g Set seg_com for each digit Express the full number by afterimage effect 6/9
8
Output Source Code bringing up multiple letters on 7-Segments (output : bA) 7/9
9
I/O Pin Planning Switch1 Xilinx Switch2 1 W15 AD12 2 AA13 AC11 3 AF13
4 AD15 W13 5 AE15 Y13 6 AA15 AE12 7 AB15 AF12 8 Y16 AB14 8/9
10
I/O Pin Planning Seg_out Xilinx Seg_com A AF5 #1 AD2 B AE5 #2 W2 C AB6
#3 W1 D AA6 #4 AB4 E K26 #5 AB3 F K25 #6 W6 G AC2 #7 W5 DP AC1 #8 W4 Clk A13 9/9
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.