blif_sis
BLIF (SIS' Berkeley Logic Interchange Format) syntax highlighter and autocompleter package for Sublime Text
Details
Installs
- Total 153
- Win 53
- Mac 18
- Linux 82
Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SUBLIME-BLIF_SIS
This repository contains the source code of the blif_sis package for Sublime Text.
BLIF is SIS' Berkeley Logic Interchange Format.
SIS is a tool that optimizes and simulates logic gate and finite state machine networks
![Presentation gif](https://github.com/mario33881/sublime-blif_sis/blob/main/assets/presentation.gif?raw=true)
This extension allows you to:
* Start to develop a .blif file from a template
> Currently the included templates are:
> * sis_fsm
, which is a Finite State Machine template
> * sis_lgate
, which is a Logic Gate template
>
> Write the name of the template that you want to
> use and then press the enter key to use the template.
Autocomplete keywords (instructions that start with the dot
.
)Syntax highlight keywords
Disclaimer:
I'm not affiliated with the SIS nor the Sublime Text developers in any way.
The aim of the extension is to add syntax highlighting and autocompletion for the BLIF format, SIS' Berkeley Logic Interchange Format, to Sublime Text.
README Index
Installation
(best) Install the
package control
package manager for Sublime Text and then install the package:- Click on
Tools > Command Palette
from the toolbar in Sublime Text - Write “
Install Package
” and thePackage Control: Install Package
option should appear below the textbox: click that option - Search for “
blif
” or “sis
” or “blif_sis
”. - Click on the
blif_sis
package to install it. > Be sure that the repository (specified below the name of the package) ishttps://github.com/mario33881/sublime-blif_sis
- Close and re-open Sublime Text for good measure.
- Click on
Manually download this repository, then:
- Go inside the
<data_path>/Packages/
folder (it varies from OS to OS and from the settings chosen during the installation) - Make a folder called “
blif_sis
” - Place inside the directory the content of the repository folder
- Go inside the
You can also build the
.sublime-package
file using theMakefile
and themake
command. Then, place the file inside one of these folders:<executable_path>/Packages/ <data_path>/Installed Packages/
If something doesn't work try to execute this on the command palette: (a .blif file must be opened before doing this)
Set Syntax: blif
Features
Templates
Templates allow you to develop your .blif file from a basic, common, baseline.
Write the name of the template that you want to use and then press the enter key to use the template.
Start typing to replace the default values. Use the tab key to switch from the currently selected default value to the next one.
Currently the included templates are:
* sis_fsm
, which is a Finite State Machine template
<div style="text-align: center; margin: 25px 0px;">
<img style="border: 1px solid white" alt="FSM template" src="https://github.com/mario33881/sublime-blif_sis/blob/main/assets/templates/fsm_template.gif?raw=true">
</div>
sis_lgate
, which is a Logic Gate template
Keyword autocompletion
Keyword autocompletion allows you to write keywords efficiently by completing a keyword using the enter key:
* Start writing a keyword, like .m
<div style="text-align: center; margin: 25px 0px;">
<img style="border: 1px solid white" alt="Autocompletion, .m" src="https://github.com/mario33881/sublime-blif_sis/blob/main/assets/autocompletion/m.gif?raw=true">
</div>
The package suggests you all the possible options for autocompletion, use the arrow keys to navigate the options and press enter on the desired autocompletion.
If default values follow the keyword, start typing to replace the first value and then use the tab key to move to the next default value (if available).
You can repeat this operation (tab key and overwriting values) for every default value.
You can also modify the values by modifing them normally
These are the keywords that you can currently autocomplete using this package:
* .model
: Define a sub-cell by specifying the name of its model.
* .inputs
: Define the name of the input(s).
* .outputs
: Define the name of the output(s).
* .names
: Define a link between inputs and an output .
(on a new line write a truth table with only minterms/maxterms).
* .exdc
: Specifies that the following truth tables have don't care(s) as an output.
* .start_kiss
: Defines a FSM.
* .end_kiss
: Closes the definition of an FSM.
* .i
: Specifies the number of inputs of a FSM.
* .o
: Specifies the number of outputs of a FSM.
* .s
: Specifies the number of states of a FSM.
* .p
: Specifies the number of states transitions of a FSM.
* .r
: Specifies the name of the reset state of a FSM.
* .code
: Define a state encoding.
* .subckt
: Initialize an instance of a sub-cell model.
* .search
: Searches (imports) sub-cell models defined in another .blif file.
* .latch
: Defines a latch.
* .end
: Closes the definition of a sub-cell model.
Syntax highlighting
This package highlights keywords that start with the dot .
and .subckt
parameters.
Highlighted keywords:
![Syntax Highlighting](https://github.com/mario33881/sublime-blif_sis/blob/main/assets/highlighting/highlighting.png?raw=true)
Development
To make modifications to this package download the repository and place this folder inside the <data_path>/Packages/
folder and then open the files using a text editor.
Sublime text automatically reloads the package on changes.
Github Issues/pull requests are welcome!
Release Notes
1.0.3
Added Comments.tmPreferences
file
1.0.2
Fix: some syntax props didn't end with “.blif”
1.0.1
Slightly lighter package
1.0.0
Initial release