Skip to the content
4 layers113 × 58 mmTVP5147M1 decoder, the printed circuit board in 3D

TVP5147M1 decoder

vehar/video-scrambler

This project contains: - Verilog HDL implementation (Quartus Prime 23.1std project) - simulation setup (Modelsim Starter Edition 2021.1 project) - jupyter notebooks for visualization and validation of the algorithms -…

Size
113 × 58 mm
Copper layers
4
Thickness
1.6 mm
Parts
165
Nets
80
Pads
525
Tracks, vias
1,384, 420
Pours
35
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Jul 2026
Updated
1 May 2025

Overview

TVP5147M1 decoder is an open-source printed circuit board by vehar, from the vehar/video-scrambler repository on GitHub, published under the MIT licence. It is a 4-layer board of 113 × 58 mm with 165 parts on 80 nets, routed with 1,384 tracks and 420 vias.

It is built around the ADV7393BCPZ-REEL, TVP5147M1IPFP and AMS1117-1.8, with the AMS1117-3.3 among its other parts. Its parts include 66 capacitors, 20 resistors, 12 connectors, 10 ICs and 2 diodes.

Main components

4

README

README.md

video-scrambler

This repository is for "Development of a Composite Baseband Video Signal (CVBS) scrambler" thesis.

Description

This project contains:

  • Verilog HDL implementation (Quartus Prime 23.1std project)
  • simulation setup (Modelsim Starter Edition 2021.1 project)
  • jupyter notebooks for visualization and validation of the algorithms
  • KiCAD 9.0 PCB designs for ADV7393 video encoder and TVP5147M1 video decoder

The Verilog implementation is based around line rotation algorithm for scrambling, Hash DRBG and SHA256 for number generation. It works with BT656 and SMPTE293M digital signal. Can synchronise the PRNGs even when the signal is lost. The scrambling pattern is different for each frame. The number of frames before the pattern repeats is 2^32. The delay is ~ 10^-8 s

The PCB design has the following features:

  • supplied with > 5V
  • has 4 layers
  • separated power plains
  • all chips pins were wired to external pins (except chroma pins)
  • equalized paths

Structure and use

To open each project you need the corresponding IDE

Notebooks

1. notebooks/config_creation

It contains scripts for generating 256-bit seeds and putting them into .mif files for configuring the scrambler.

Generates complementary config files for the scrambler and descramber,

2. notebooks/functional_validation

It was used to rewrite high-level python implementation into verilog-friendly algorithm

3. notebooks/mp_to_bt656

It contains a notebook used for converting .mp4 video to .bin file compliant with bt656.

Additionally, it is used for visualization the scrambled and descrambled videos and contains the entropy calculations

Also, it has two videos: aperol.mp4 and church.mp4. For simulation the user must convert the videos to aperol_f84.bin and church_f218.bin and put them into

FPGA/core/simulation/modelsim/data or FPGA/core/simulation/questa/data

4. notebooks/randomness_validation

It was used to validate that the generated random numbers are random

5. notebooks/resource_usage

It was used to produce plots of resource usage as compiled by Quartus

Verilog HDL implementation

scrambler_mm is the top module

FPGA/core contains the quartus project

FPGA/core/src contains rtl and tb code

FPGA/core/include contains rtl written by other developers

Simulation setup

FPGA/core/simulation/modelsim contains the modelsim project

To provide the data for the simulation you must put it into FPGA/core/simulation/modelsim/data. currently the simulations accepts only two types of files: files generated from aperol_f84.bin or church_f218.bin. if you want to change it, you must modify the testbench with names of your files. Once they are in there, open the project with modelsim, goto project, see a sim folder and in there run de/scrambler_mm_sim. Run the scrambler first, and then the descrambler. The results will be in FPGA/core/simulation/modelsim/data folder.

image

FPGA/core/simulation/questa is generated by quartus for RTL and Gate Level simulations. It was only used for GLS of scrambler_mm, because quartus has a bad interface for simulation, when the top module changes frequently.

When doing the GLS the user MUST CHANGE THE MIF FILE (for the corresponding functionality) AND UPDATE THE MIF FILE (in quartus) OR RECOMPILE when switching between scrambling (scrambler_mm_gls_tb) and descrambling(descrambler_mm_gls_tb) simulations. This is because in gate level simulation the mif file is compiled into the tested module.

PCB

PCB/ADV7393BCPZ_encoder contains the KiCAD project with the corresponding chip

PCB/TVP5147M1_decoder contains the KiCAD project with the corresponding chip AND the TVP5147M1_decoder and ADV7393BCPZ_encoder on the same PCB

Results

It contains scrambled and descrambled videos

scrambled

image

descrambled

image

Parts

165
QtyValueFootprintReferences
150.1uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC11, C12, C13, C14, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26
80.1uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC12, C14, C15, C16, C21, C23, C27, C30
810uFCapacitor_SMD:CP_Elec_4x5.7C4, C5, C5, C27, C28, C29, C31, C33
810uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-A_Pad1.58x1.35mm_HandSolderC6, C6, C7, C7, C8, C9, C26, C45
822uFCapacitor_SMD:CP_Elec_5x5.7C9, C10, C10, C28, C29, C30, C35, C39
833uFCapacitor_Tantalum_SMD:CP_EIA-3528-15_AVX-H_Pad1.50x2.35mm_HandSolderC1, C1, C2, C2, C3, C4, C25, C41
8Ferrite_BeadPCM_Ferrite_THT_AKL:Ferrite_L6.0mm_D3.5mm_P10.16mmFB1, FB1, FB2, FB2, FB3, FB3, FB4, FB4
6Conn_02x01Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_VerticalJ2, J2, J3, J3, J4, J5
50.01uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC11, C13, C15, C20, C22
42.2kOhmPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1, R2, R3, R4
4AMS1117-1.8Package_TO_SOT_SMD:SOT-223-3_TabPin2U1, U1, U2, U3
4AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3, U4, U5, U7
4Conn_CoaxialLocalLibrary:CC-132-B1CVBS1, CVBS1, CVBS2, CVBS2
34k7PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4, R5, R6
222pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC37, C38
22k2PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3
25kPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR6, R11
275PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR9, R10
275OhmPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR5, R8
2LED_3mmLED_THT:LED_D3.0mmD1, D1
2NetTie_2NetTie:NetTie-2_THT_Pad1.0mmNT1, NT3
10PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR12
1100kOhmPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR15
110kOhmPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderRB8
112nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC17
114.31818 MHzCrystal:Crystal_HC49-U_VerticalY1
1150nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC19
1170PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR8
11uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-A_Pad1.58x1.35mm_HandSolderC24
12.2nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC18
1510PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7
15kPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
1ADV7393BCPZ-REELPackage_CSP:LFCSP-40-1EP_6x6mm_P0.5mm_EP3.9x3.9mm_ThermalViasIC1
1Conn_01x01Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ5
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1Conn_02x02_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_VerticalJ7
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ9
1Conn_02x05_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_VerticalJ4
1Conn_02x08_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x08_P2.54mm_VerticalJ1
1NetTie_2NetTie:NetTie-2_SMD_Pad0.5mmNT2
1TVP5147M1IPFPPFP80_6p2X6p2:PFP80_6p2X6p2-MU2

The 127 most common of 165 parts.

More from vehar/video-scrambler

1
  • 4 layers50.9 × 55.3 mmADV7393BCPZ encoder, the printed circuit board in 3D

    ADV7393BCPZ encoder

    vehar/video-scrambler

    This project contains: - Verilog HDL implementation (Quartus Prime 23.1std project) - simulation setup (Modelsim Starter Edition 2021.1 project) - jupyter notebooks for visualization and validation of the algorithms -…

    60 partsMIT

Similar boards

  • 2 layers85 × 99.6 mmBadge, the printed circuit board in 3D

    Badge

    urish/aramcon-badge

    Just a badge

    93 parts18
  • 4 layers97.3 × 69.6 mmAtariHDisk4, the printed circuit board in 3D

    AtariHDisk4

    smonson78/smonson-disk

    SD card to ACSI hard drive interface

    77 parts5GPL-3.0
  • 4 layers99.5 × 65 mmEcho, the printed circuit board in 3D

    Echo

    rh1tech/echo

    Echo: ESP32-Based VGA Board

    181 parts4
  • 4 layers329.5 × 199.5 mmKEPR, the printed circuit board in 3D

    KEPR

    RapportTecnologia/kit-de-prototipacao-educacional-e-engenharia

    KEPR - Kit Educacional de Prototipação Rapport, é um kit que visa trazer total flexibilidade ao desenvolvimento de sistemas embarcados e IoT, permitindo trocar facilmente o processador e até mesmo Rede e WiFi sem…

    38 parts3
  • 2 layers58 × 34.5 mmPb mobo final, the printed circuit board in 3D

    Pb mobo final

    anbridge/pb-elec-design

    electronic designs for posture best

    49 parts2
  • 2 layers92.7 × 65.4 mmLightweatherv3, the printed circuit board in 3D

    Lightweatherv3

    dominicmason555/lightweatherv3

    Open-Source Hardware and Firmware IO and Temperature/Pressure/Humidity/Gas Sensor MQTT Board

    201 parts2CERN-OHL-S-2.0
  • 4 layers120 × 92 mmKehvm, the printed circuit board in 3D

    Kehvm

    knewter/kvm-board

    An open-source KVM-over-IP device built with a Milk-V Duo S (RISC-V) and ESP32-S3. Remotely control any computer's keyboard, video, and mouse over your network — at the hardware level, independent of the target's OS.

    70 parts2
  • 4 layers98.5 × 193.5 mmSchematics, the printed circuit board in 3D

    Schematics

    apistol78/retrodack

    RetroDäck, handheld game console

    120 parts1MPL-2.0

Questions

How big is the TVP5147M1 decoder PCB?

It measures 113 × 58 mm and has 4 copper layers, 1.6 mm thick.

What parts does the TVP5147M1 decoder use?

165 parts, built around the ADV7393BCPZ-REEL, TVP5147M1IPFP, AMS1117-1.8 and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the TVP5147M1 decoder KiCad files?

From the vehar/video-scrambler repository on GitHub, at the commit this page was made from: the board is PCB/TVP5147M1_decoder/TVP5147M1_decoder.kicad_pcb and its schematic PCB/ADV7393BCPZ_encoder/ADV7393BCPZ_encoder.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the TVP5147M1 decoder design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).