583 Universal Binary to Segment Decoder

583 : Universal Binary to Segment Decoder

Design render

How it works

This project is composed of four modules:

  • A BCD to seven segment decoder with a wide variety of options for customizing the appearance of digits
  • An ASCII to seven segment decoder with two different “fonts”
  • A dual BCD to Cistercian numeral decoder
  • A BCV (binary-coded vigesimal) to Kaktovik numeral decoder

BCD to seven segment decoder

This mode converts a decimal digit in BCD to its representation on a standard seven segment display. There are inputs that affect the display of the digits 6, 7, and 9, and eight different options for handling out-of-range values. These inputs allow this decoder to match the behavior of just about any other BCD to seven segment decoder, making it universal.

The signals used in this mode are:

  • /AL - Active low. If HIGH, outputs will be HIGH when lit. If LOW, outputs will be LOW when lit.
  • /BI - Blanking input. If LOW, all segments will be blank regardless of other inputs, including /LT.
  • /LT - Lamp test. When /BI is HIGH and /LT is LOW, all segments will be lit.
  • /RBI - Ripple blanking input. If the BCD value is zero and /RBI is LOW, all segments will be blank.
  • V0, V1, V2 - Selects the output when the BCD value is out of range.
  • X6 - When HIGH, the extra segment a will be lit on the digit 6.
  • X7 - When HIGH, the extra segment f will be lit on the digit 7.
  • X9 - When HIGH, the extra segment d will be lit on the digit 9.
  • A, B, C, D - BCD input from least significant bit A to most significant bit D.
  • a, b, c, d, e, f, g - Outputs for a seven segment display.
  • /RBO - Ripple blanking output. HIGH when BCD value is nonzero or /RBI is HIGH.

The pin assignments in this mode are:

Dedicated Input Dedicated Output Bidirectional
0 A Segment a Input - X6
1 B Segment b Input - X7
2 C Segment c Input - X9
3 D Segment d Input - /LT
4 V0 Segment e Input - /BI
5 V1 Segment f Input - /AL
6 V2 Segment g Input - LOW
7 /RBI /RBO Input - LOW

ASCII to seven segment decoder

This mode converts an ASCII character to a representation on a standard seven segment display. Like with the BCD decoder, there are inputs that affect the display of the digits 6, 7, and 9. There are also two choices of “font” and the option to display lowercase letters as uppercase or as lowercase.

The signals used in this mode are:

  • /AL - Active low. If HIGH, outputs will be HIGH when lit. If LOW, outputs will be LOW when lit.
  • /BI - Blanking input. If LOW, all segments will be blank regardless of other inputs.
  • FS - Font select. Selects one of two “fonts.”
  • LC - Lower case. If LOW, lowercase letters will appear as uppercase.
  • X6 - When HIGH, the extra segment a will be lit on the digit 6.
  • X7 - When HIGH, the extra segment f will be lit on the digit 7.
  • X9 - When HIGH, the extra segment d will be lit on the digit 9.
  • D0...D6 - ASCII input from least significant bit D0 to most significant bit D6.
  • a, b, c, d, e, f, g - Outputs for a seven segment display.
  • /LTR - Letter. LOW when the input is a letter (A...Z or a...z).

The pin assignments in this mode are:

Dedicated Input Dedicated Output Bidirectional
0 D0 Segment a Input - X6
1 D1 Segment b Input - X7
2 D2 Segment c Input - X9
3 D3 Segment d Input - FS
4 D4 Segment e Input - /BI
5 D5 Segment f Input - /AL
6 D6 Segment g Input - HIGH
7 LC /LTR Input - LOW

Dual BCD to Cistercian numeral decoder

This mode converts two decimal digits in BCD to their representations on the segmented display for Cistercian numerals shown below.

The patterns produced for each input value are shown below.

The signals used in this mode are:

  • /AL - Active low. If HIGH, outputs will be HIGH when lit. If LOW, outputs will be LOW when lit.
  • /BI - Blanking input. If LOW, all segments will be blank regardless of other inputs, including /LT1 and /LT2.
  • /LT1 - Lamp test for digit 1. When /BI is HIGH and /LT1 is LOW, all segments for digit 1 will be lit.
  • /LT2 - Lamp test for digit 2. When /BI is HIGH and /LT2 is LOW, all segments for digit 2 will be lit.
  • A1, B1, C1, D1 - BCD input for digit 1 from least significant bit A1 to most significant bit D1.
  • A2, B2, C2, D2 - BCD input for digit 2 from least significant bit A2 to most significant bit D2.
  • U1, V1, W1, X1, Y1 - Outputs for digit 1 on a Cistercian segmented display.
  • U2, V2, W2, X2, Y2 - Outputs for digit 2 on a Cistercian segmented display.

The pin assignments in this mode are:

Dedicated Input Dedicated Output Bidirectional
0 A1 Segment U1 Output - Y1
1 B1 Segment U2 Output - Y2
2 C1 Segment V1 Input - /LT1
3 D1 Segment V2 Input - /LT2
4 A2 Segment W1 Input - /BI
5 B2 Segment W2 Input - /AL
6 C2 Segment X1 Input - LOW
7 D2 Segment X2 Input - HIGH

BCV to Kaktovik numeral decoder

This mode converts a vigesimal (base 20) digit in BCV (binary-coded vigesimal) to its representation on the segmented display for Kaktovik numerals shown below.

The patterns produced for each input value are shown below.

The signals used in this mode are:

  • /AL - Active low. If HIGH, outputs will be HIGH when lit. If LOW, outputs will be LOW when lit.
  • /BI - Blanking input. If LOW, all segments will be blank regardless of other inputs, including /LT.
  • /LT - Lamp test. When /BI is HIGH and /LT is LOW, all segments will be lit.
  • /RBI - Ripple blanking input. If the BCV value is zero and /RBI is LOW, all segments will be blank.
  • /VBI - Overflow blanking input. If the BCV value is out of range and /VBI is LOW, all segments will be blank.
  • A, B, C, D, E - BCV input from least significant bit A to most significant bit E.
  • a, b, c, d, e, f, g, h - Outputs for a Kaktovik segmented display.
  • /RBO - Ripple blanking output. HIGH when BCV value is nonzero or /RBI is HIGH.
  • V - Overflow. HIGH when BCV value is out of range (greater than or equal to 20).

The pin assignments in this mode are:

Dedicated Input Dedicated Output Bidirectional
0 A Segment a Output - h
1 B Segment b Output - V
2 C Segment c
3 D Segment d Input - /LT
4 E Segment e Input - /BI
5 Segment f Input - /AL
6 /VBI Segment g Input - HIGH
7 /RBI /RBO Input - HIGH

How to test

The test directory includes extensive tests for each of the four modules.

External hardware

For the BCD and ASCII modes, a standard seven-segment display is used.

For the Cistercian mode, a segmented display like the one below is used. There are design files for such a display here.

For the Kaktovik mode, a segmented display like the one below is used. There are design files for such a display here.

IO

#InputOutputBidirectional
0A; D0; A1; ASegment a; U1; aX6; X6; Y1; h
1B; D1; B1; BSegment b; U2; bX7; X7; Y2; V
2C; D2; C1; CSegment c; V1; cX9; X9; /LT1; -
3D; D3; D1; DSegment d; V2; d/LT; FS; /LT2; /LT
4V0; D4; A2; ESegment e; W1; e/BI (blanking input)
5V1; D5; B2; -Segment f; W2; f/AL (active low)
6V2; D6; C2; /VBISegment g; X1; gM0 (mode select)
7/RBI; LC; D2; /RBI/RBO; /LTR; X2; /RBOM1 (mode select)

Chip location

Controller Mux Mux Mux Mux Mux Mux Mux Mux Mux Mux Mux Mux Mux Mux Mux tt_um_chip_rom (Chip ROM) tt_um_factory_test (Tiny Tapeout Factory Test) tt_um_utoss_riscv (UTOSS RISC-V core) tt_um_memory_game_top (Number Memory Game) tt_um_danielpenas42 (Ball Display) tt_um_machinelearning (7-Segment Neural Predictor) tt_um_microlane_demo (microlane demo project) tt_um_pixel_processor (Tiny Pixel Processor) tt_um_jpigdon_gps_accelerator_top (GPS_Accelerator) tt_um_rgb_mixer (rgb_mixer) tt_um_bgao43 (Tiny TPU Systolic Array) tt_um_main (Pong in Verilog) tt_um_joannec34_teenytpu (teenytpu) tt_um_apa102_ws2812_squidgeefish (APA102 to WS2812 Translator) tt_um_uacj_bouncing_DVD_screensaver (Custom DVD Screensaver for VGA) tt_um_logoUACJ_MOGA (VGA_screensaver_UACJ) tt_um_grace_spi_led_driver (SPI-Controlled 8-Channel LED Driver) tt_um_rebeccargb_universal_decoder (Universal Binary to Segment Decoder) tt_um_rebeccargb_hardware_utf8 (Hardware UTF Encoder/Decoder) tt_um_happyhop_deadcast2 (happyhop) tt_um_dino7 (Dino-7: 7-Segment Runner Game) tt_um_arty3_mac_engine (Simple MAC Engine w/ Postproc) tt_um_uacj (Custom DVD Screensaver for VGA) tt_um_algofoogle_dottee (DOTTEE VGA demo (TTGF26a)) tt_um_mattvenn_signal_generator (Simple Signal Generator) tt_um_urish_simon (Simon Says memory game) tt_um_tpu (Tensor Processing Unit For GF) tt_um_gojimmypi_ttgf_UART_FSM_TRNG_Lab (Hardware Entropy Explorer: UART/SPI TRNG and PUF) tt_um_wokwi_465483277165299713 (First Tinytapeout) tt_um_prem_pipeline_test (Programmable_Pipeline-RISC-V) tt_um_wokwi_467219410242853889 (Tiny Tapeout testtest 111233) tt_um_wokwi_465549494272929793 (Pacos first design) tt_um_wokwi_465731371445677057 (Arturo's first Wokwi design) tt_um_wokwi_465732744934845441 (Tiny Tapeout Template_1234) tt_um_wokwi_465736492859711489 (Tiny Tapeout Workshop JuanF) tt_um_wokwi_465731430225727489 (Rafa’s first Wokwi design) tt_um_wokwi_465731458365332481 (7 segment Display Fli-Flop Try-out) tt_um_wokwi_465732744245929985 (DiseñoCursoTiny) tt_um_wokwi_465731490568160257 (Matt’s first Wokwi design) tt_um_wokwi_465736691688630273 (test1) tt_um_wokwi_465731458628527105 (Mi copia del Tiny Tapeout) tt_um_wokwi_465731520738845697 (El primer diseño) tt_um_wokwi_465731521356457985 (Tiny Tapeout Template Copy) tt_um_gen1_digital_companion_tile (Gen1 Digital Companion Tile) tt_um_wokwi_465732827753495553 (Tiny Tapeout Template Ayman) tt_um_wokwi_465731394728267777 (Julian_Proyecto) tt_um_wokwi_465731458535202817 (Tiny Tapeout Template Copy) tt_um_wokwi_465732847401723905 (Basic Circuit) tt_um_wokwi_465731452481768449 (El primer diseño de Matt para Wokwi) tt_um_wokwi_465731502018614273 (Tiny Tapeout Template flip flop) tt_um_wokwi_465732616714924033 (Tiny Tapeout RJAP) tt_um_wokwi_465731575275296769 (ocxpkeWokwiDesign) tt_um_wokwi_465732880722332673 (Pedro Template) tt_um_wokwi_465731858252480513 (Paula's first Wokwi design) tt_um_wokwi_465731455677830145 (Tiny Tapeout JMCG) tt_um_wokwi_465737601403996161 (Tiny Number Simon) tt_um_ttmul (Balanced Ternary Multiplier) tt_um_wokwi_465731466664816641 (Tiny Tapeout Workshop Malaga 2jun2026) tt_um_8bit_risc_cpu (8-bit RISC CPU) tt_um_wokwi_451184391728659457 (Simple Sprinkler) tt_um_fhw_appel_spiPWMio (spiPWMio) tt_um_divadnauj_GB_serv_soc_wb (serv_soc_wb) tt_um_8bitcustomcomputer (SAP 8 Bit Computer) tt_um_bioimpedance (Very Low Resource Digital Implementation of Bioimpedance Analysis) tt_um_mgj_bist8 (BIST-8: Built-In Self-Test for 8-bit CLA Adder) tt_um_roberto_tiny_radar_tile (BioPulse Tile) tt_um_systolic_mac_2x2 (2x2 Systolic Array Matrix Multiplier) tt_um_peg_top (2x2 CNN Accelerator PE Grid with UART) tt_um_AlvaroRub_ringcounter (Counter16Outputs) tt_um_wokwi_465731440267947009 (Antonio's first Wokwi design) tt_um_wokwi_465732706576877569 (Guille's first Wokwi design.) tt_um_wokwi_465731481873367041 (MIPS-Lite 8-bit Processor) tt_um_wokwi_465736612213902337 (Juan`s first Worki design) tt_um_wokwi_465731439156454401 (Rhyloo’s first Wokwi design) tt_um_wokwi_465732536551273473 (Tiny Tapeout Marcos Fernandez) tt_um_wokwi_465737290543084545 (Tiny Tapeout Template) tt_um_wokwi_465630130495825921 (ram 1 bit Copy) tt_um_wokwi_465731403724006401 (sdft wokwi 1) tt_um_top (RHD2164-MCU-SPI Bridge) tt_um_line_follower_arvaloez (Line Follower Robot controller) tt_um_xoroshiro64plus_v2 (xoroshiro64) tt_um_ohuettenhofer_tiny_qsim (Tiny Quantum Circuit Simulator) tt_um_santhosh_ring_osc_gf (Ring Oscillator PVT Sensor & TRNG (GF180)) tt_um_santhosh_stoch_stdp_pair_gf (Stochastic neuron + STDP controller (merged, GF180)) tt_um_santhosh_rsd_char_gf (RRAM Characterization Platform (DC sweep + endurance + retention + histogram, GF180)) tt_um_santhosh_xbar_ctrl_gf (Memristive Crossbar Peripheral Controller (GF180)) tt_um_joseph_bf (BF) tt_um_hydrocomms (FSK Modem) tt_um_systolic_array (2x2 MAC Systolic array with DFT) tt_um_kluterirv_rv32e_core (Minimal RV32E SoC with UART Loader) tt_um_algofoogle_ttgf26a_vco (VCO driven by DAC) tt_um_fer_logo_music_vga (UNIZG-FER VGA project) tt_um_maqsudbek_dyadic_pwm (Dyadic PWM) tt_um_waferspace_vga_screensaver (Wafer.space Logo VGA Screensaver) tt_um_htfab_vga_tester (Video mode tester)