Code Monkey home page Code Monkey logo

stil's Introduction

STIL

Standard Tester Interface Language [IEEE1450]

CI CD

GitHub release (latest SemVer) GitHub commits since latest release (by date) PyPI

Conda (channel only) conda-forge feedstock

GitHub issues GitHub pull requests

codecov Conda Downloads

This repository contains STIL parser and dump compiler written in Python using Lark parser library and Language Server Protocol (LSP) for integration into IDE. The work is in progress and the parser is not yet ready to be used in production environment.

Usage examples

Use syntax and semantic parsers to find out errors in the input STIL file:

from Semi_ATE.STIL.parsers.STILParser import STILParser

stil_file = "PATH_TO_STIL_FILE"
parser = STILParser(stil_file)
parser.parse_syntax()
parser.parse_semantic()
if parser.err_line == -1:
  print("No errors are found during STIL file parsing")
else:
  print("Found error during STIL file parsing")

Use a dump compiler to understand how to make a own compiler.

The dump compiler will save content of the STIL file into one or more text files. The files contain WFC data for signals, commands etc. The compiler can expand the procedures and shift statements if needed. For detail information, read the intro text of the Semi_ATE.STIL.parsers.STILDumpCompiler

from Semi_ATE.STIL.parsers.STILDumpCompiler import STILDumpCompiler

stil_file = "PATH_TO_STIL_FILE"
out_folder = "PATH_TO_OUTPUT_FOLDER"

compiler = STILDumpCompiler(
    stil_file, expanding_procs=True, is_scan_mem_available=True, out_folder = out_folder
)
compiler.compile()

stil's People

Contributors

seimit avatar nerohmot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.