This is the official TCG reference implementation of the TPM 2.0 Specification. The project contains complete source code of the reference implementation with various Build Options.
This repository includes a TPM 2.0 simulator that emulates a TPM 2.0 device and can be accessed via a custom TCP based protocol. This allows experimentation and testing of the reference code. The simplest way to work with the simulator is to use a TSS library for the programming language of your choice - C#/.Net, C++, Java, Python, JavaScript/Node.js are currently supported. The C language TSS implementing the TCG's TSS API specification is available here.
An explanation of the architecture for the TPM Reference Code.
The supported build environments are not guaranteed and subject to change.
See Build Intro