Skip to content

Module for load configuration from ClockBuilderPro to Si5340 PLL via i2c interface

Notifications You must be signed in to change notification settings

RDSik/si5340-config-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Doc

Si5341, Si5340 Reference Manual

Dependencies

cocotb, pytest, python, chocolatey, winget

Installation

Download python and git:

Clone repository:

git clone https://github.com/RDSik/si5340-config-loader.git
cd si5340-config-loader

Download packages:

pip install six
pip install hdlmake
pip install cocotb
pip install pytest

Download make (add to PATH system variable the Make bin folder: C:\Program Files (x86)\GnuWin32\bin):

winget install GnuWin32.make

Create config.mem file

cd src
py config_parser.py .\Si5340-RevD-Si5340-Registers.txt

Simulation

Using cocotb (with 64 bit Python use 64 bit Modelsim):

py -m venv myenv
.\myenv\Scripts\activate.ps1
cd .\sim\modelsim\cocotb
py -m pytest test.py
deactivate

Using hdlmake:

cd .\sim\modelsim\hdlmake\
py -m hdlmake
make

Using Verilator:

cd ./sim/verilator/
make