Giter Club home page Giter Club logo

vhdl_gen's Introduction

Scroll down for the Portuguese version

===

ENGLISH VERSION

VHDL_GEN

vhdl_gen is currently a simple VHDL generator that uses a .txt file as input and generates a complete VHDL design. It's not tested under Windows environment but should work.

USAGE

chmod +x the vhdl_gen.py file and execute it "./vhdl_gen.py ../FILE.txt"

A .vhd file will be created with all the inputs and outputs and internal signals declared in the .txt file, the standard 1164 library and the numeric_std library are going to be used.

Also a state machine is going to be used with the two state machine style, one with the registers (sequential logic) and another one with the combinational logic.

INPUT FILE

The .txt file MUST have the following template. Please note that the first IO_name MUST BE THE CLOCK and the second THE RESET.

ENTITY

IO_name-in/out-number_of_bits
#
signal_name-number_of_bits

EXAMPLE OF INPUT FILE

blink_led
sysclk-in-1
reset_n-in-1
enable-in-1
leds-out-16
#
timer-16
leds-16

===

PORTUGUESE VERSION

VHDL_GEN

vhdl_gen é um gerador de VHDL simples que utiliza um arquivo .txt como entrada e gera um design completo em VHDL, ainda não foi testado em windows mas deve funcionar.

UTILIZACAO

chmod +x o arquivo vhdl_gen.py e execute-o "./vhdl_gen.py ../ARQUIVO.txt"

Um arquivo .vhd vai ser criado com todas as entradas, saidas e os sinais internos declarados com base no arquivo .txt, a biblioteca padrão 1164 e a numeric_std serão utilizadas.

Tambem sera criada uma maquina de estados do tipo em que se separa a parte combinacional e sequencial do design.

ARQUIVO DE ENTRADA

o arquivo .txt deve seguir este template, o primeiro NomeES deve ser o clock e o segundo o reset.

ENTIDADE

NomeES-in/out-numeroDeBits
#
NomeSINAL-numeroDeBits

EXEMPLO DE ARQUIVO DE ENTRADA

pisca_led
sysclk-in-1
reset_n-in-1
enable-in-1
leds-out-16
#
timer-16
leds-16

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.