Browse Source

Add CI

master
yne 2 years ago
parent
commit
8053d826d0
  1. 35
      .github/workflows/push.yml
  2. 71
      README.md

35
.github/workflows/push.yml

@ -0,0 +1,35 @@
name: push
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: build
run: gcc vcd.c -o vcd
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_FILES: vcd
run: |
ls -al
RELEASE_TAG="$(date +%y%m%d)"
curl -sL -XPOST -d '{"tag_name": "'$RELEASE_TAG'"}' \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H 'Content-Type: application/json' \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/releases"
RELEASE_ID=$(curl -svL https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/$RELEASE_TAG | jq .id)
for RELEASE_FILE in $RELEASE_FILES ; do
curl -sL -XPOST -T ${RELEASE_FILE}* \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type:application/octet-stream" \
"https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$RELEASE_ID/assets?&name=$RELEASE_FILE-$OS"
done
shell: bash

71
README.md

@ -1,7 +1,12 @@
<img src=https://svgur.com/i/Fck.svg width=100% height=200>
VCD file command line viewer
It can be used a lightweight remplacement to GTKWave (16801 KB vs 6 KB)
Lightweight command line remplacement to GTKWave (16801 KB vs 6 KB)
## Download
Windows, Linux and MacOS binaries are available in the [releases page](../../releases)
## Usage
@ -16,67 +21,15 @@ Usage: vcd [OPTION]... [FILE]
-s=a,b : comma separated scopes to display
```
### Note
`stdout` will be used as input stream if no input file were providen.
So you could do :
vcd < in.vcd > out.txt
## Examples
vcd sim_fifo.vcd
will output
```bash
vcd sim_fifo.vcd
vcd < in.vcd > out.txt
vcd -i=sim_fifo.vcd -w=1 -r=0 -s=fifo1
```
43 samples / Fri N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0 0 1 1 1 1 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
|
| r_adr[1:0](4)[ 2]: U U 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 3 3 3 3 0 0 1 1 2 2 3 3 3 3 3 3
|
e_wen(^)[ 1]: ____________________________________________________________________________________
```
vcd -i=sim_fifo.vcd -w=1 -r=0 -s=fifo1
will output only the fifo1 module in a smaller graph without transitions
# Preview
```
43 samples / Fri Nov 21 16:56:29 2014 / 1 fs
@ -92,4 +45,4 @@ will output only the fifo1 module in a smaller graph without transitions
| full(2)[ 1]: UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
| w_adr[1:0](3)[ 2]: UU00001111112233001111222233333333333333333
| r_adr[1:0](4)[ 2]: UU00000011111111111111222233330011223333333
```
```

Loading…
Cancel
Save