Skip to content

NigoroJr/hashigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

A compiler to translate Ladder Logic to Verilog HDL.

Description

The objectives of this project is to convert ladder logic to a hardware description language (HDL) that can be used to program an FPGA. This is a proof of concept that an FPGA can provide the benefits of relay's parallel logic alongside the flexibility of reprogramming allowed by the PLC.

In order to use this program, you will need to:

  1. have access to an Rockwell's RSLogix5000 IDE to generate an L5X file
  2. write the part that transforms your Ladder Logic to a hshg file

Academic paper can be found here.

Build and Run

Ubuntu 16.04 is the recommenned environment to run this program. Development was also done on macOS.

Requirements

  • C++ compiler that supports C++11
  • CMake 2.8 or above
  • pugixml
  • bison
  • flex

Running

Usage:
  hashigo <L5X file> <template directory>
$ sudo apt-get install bison flex libpugixml-dev
$ git clone https://github.com/NigoroJr/hashigo
$ cd hashigo/build
$ cmake ..
$ make
$ ./src/hashigo ../samples/CarWash.L5X ../templates/

Credits

Authors

Naoki Mizuno

About

Ladder logic to Verilog HDL compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published