semvec/pypi-packages huggingface dataset:
hectare 0.2.4
VHDL generator from SystemRDL
Requires Python: >=3.5
Keywords: systemrdl fpga vhdl axi registers

[![PyPI version](https://badge.fury.io/py/hectare.svg)](https://badge.fury.io/py/hectare)

# HECTARE - Hamburg Elegant CreaTor from Accellera™ systemrdl™ to REgisters

This is a tool which generates AXI4-Lite slave from a description in
[SystemRDL](https://www.accellera.org/activities/working-groups/systemrdl).

It uses [systemrdl-compiler](https://github.com/SystemRDL/systemrdl-compiler)
as a front end and a custom backend to generate a VHDL module.

The HECTARE tool is developed by [MicroTCA Tech Lab](https://techlab.desy.de/)
at DESY.

## Usage

```
$ hectare.py --help
usage: hectare.py [-h] [--debug] [--axi-vhdl VHDL_NAME] filename

HECTARE - Hamburg Elegant CreaTor from Accelera systemrdl to REgisters

positional arguments:
  filename              .rdl file

optional arguments:
  -h, --help            show this help message and exit
  --debug               enable debugging information
  --axi-vhdl VHDL_NAME  generate AXI4-Lite slave
```

## Useful arguments

  * `sw`: `r`, `rw`, `w`, `na`
  * `hw`: `r`, `rw`, `w`, `na`
  * `swmod`
  * `singlepulse`
  * `woclr`
  * `encode`

## Changelog

### [0.2.4] - 2021-06-19

* Read decode error returns `0xbadcofee`

### [0.2.3] - 2021-06-07

* Add support for `woclr`

### [0.2.2] - 2021-04-11

* Add support for `singlepulse`

### [0.2.1] - 2021-02-19

* Add C header generator
* Add support for reset values
* Add version argument (`--version`) to print version information

### [0.2.0] - 2020-06-08

* First public release
* Provides generation of AXI4-Lite module in VHDL
* Supports all possible combination for `sw` and `rw` properties as well as
  `swmod` and `encode` attribute

## Tests

Several tests are provided in `test` folder

### 00_unit_test

This is a simple unit test based on the Python [] framework.

### 01_uvvm_simple

**UVVM version: v2019.12.04**

Regenerating the output products (in shell, from folder `hdl`):

```
$ ./gen_output.sh
Parsing finished.
generate_package
Generating mymodule.vhd ...
Generating mymodule_pkg.vhd ...
Done.
```

Running the test (in ModelSim, from folder `work`)

```
do ../scripts/compile_uvvm.do
do ../scripts/sim.do
```

### 02_hdlparse

Requires **hdlparse** from a fork (the one from pip is missing some features)
available from https://github.com/andresmanelli/hdlparse on branch `entity`.

### 03_ordt_equivalence

Compares the output of HECTARE against Juniper®
[ordt](https://github.com/Juniper/open-register-design-tool).

Alias to `ordt` should be created, as explained
[here](https://github.com/Juniper/open-register-design-tool/wiki/Running-Ordt).

---

Accellera™ and SystemRDL™ are trademarks of Accellera Systems Initiative Inc.

Juniper® is a registered trademark of Juniper Networks, Inc.
nonogram-cracker 1.0.1
A standalone function that returns the solution of a nonogram puzzle.
Requires Python: >=3.6


# Nonogram Cracker

## Takes in a nonogram puzzle and returns its solution

---

## Usage

```python
import json
from nonogram_cracker import solve

solution = solve({
  "name": "turtle",
  "rows": [
    [1, 1, 1],
    [5],
    [3],
    [5],
    [1, 1]
  ],
  "cols": [
    [2, 2],
    [3],
    [4],
    [3],
    [2, 2]
  ]
})

print(json.dumps(solution, indent=2, ensure_ascii=False))
# [
#   "█ █ █",
#   "█████",
#   " ███ ",
#   "█████",
#   "█   █"
# ]
```

---

### Input Schema
#### TODO

### Output Schema
#### TODO
gclang 0.0.3
Guarded command language interpreter

# Guarded

Guarded is the interpreter of Dijkstra's guarded command language,
written in python with ANTLR4 generator.

Example of program in this language:
```
a := 45;
b := 15;

do a != b ->
    if a > b -> a := a - b
    |  a < b -> b := b - a
    fi
od
```

## Quick start:
To start using interpreter, follow these steps:

* Install gclang:
```console
  $ pip install gclang
```

* Launch program of your choice with:
```console
  $ gclang ./examples/euqclid.gua run
  $ gclang ./examples/euqclid.gua derive
```