Coverage for tsfpga/__init__.py: 100%

15 statements  

« prev     ^ index     » next       coverage.py v6.4, created at 2022-05-28 04:01 +0000

1# -------------------------------------------------------------------------------------------------- 

2# Copyright (c) Lukas Vik. All rights reserved. 

3# 

4# This file is part of the tsfpga project. 

5# https://tsfpga.com 

6# https://gitlab.com/tsfpga/tsfpga 

7# -------------------------------------------------------------------------------------------------- 

8 

9""" 

10A set of reusable functions for working with HDL projects. 

11""" 

12 

13 

14from pathlib import Path 

15 

16 

17THIS_DIR = Path(__file__).parent 

18REPO_ROOT = THIS_DIR.parent.resolve() 

19 

20TSFPGA_PATH = REPO_ROOT / "tsfpga" 

21TSFPGA_DOC = REPO_ROOT / "doc" 

22TSFPGA_TCL = THIS_DIR / "vivado" / "tcl" 

23TSFPGA_GENERATED = REPO_ROOT / "generated" 

24 

25TSFPGA_EXAMPLES = TSFPGA_PATH / "examples" 

26TSFPGA_EXAMPLE_MODULES = TSFPGA_EXAMPLES / "modules" 

27 

28# Default encoding when opening files 

29DEFAULT_FILE_ENCODING = "utf-8" 

30 

31__version__ = "11.0.1-dev" 

32 

33# Releases to PyPI are bundled with a release version of the hdl_modules 

34# project (https://hdl-modules.com). These three definitions will be filled in that case. 

35# This is a Path object pointing to the 'modules' folder where the hdl_modules can be found. 

36HDL_MODULES_LOCATION = None 

37# This is a string of the git tag the modules were fetched from 

38HDL_MODULES_TAG = None 

39# This is a string of the git sha the modules were fetched from 

40HDL_MODULES_SHA = None