Skip to content

Commit

Permalink
Fixed readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
wd5gnr committed Aug 26, 2018
1 parent 8c67a70 commit acdf7f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Verifla
This is a fork of OpenVerifla (https://opencores.org/project/openverifla) that tries to do a few things:

1) Document some of the settings a bit better
Expand All @@ -17,13 +18,13 @@ spews out of the FPGA, the JAVA code can not sync to it.
with Icestorm tools (at least) setting memory to 256 bytes and the trigger position to
128 causes a hang. Trigger positions at 127 and 129 are fine.

Possible Enhancements
# Possible Enhancements
1) Uart clock vs Sample clock (Uart clock >> Sample clock)
2) Clock Enable for sample clock (done)
3) Change post trigger samples to do post trigger memory words (or document to set huge #)
4) Java: Pick up Verilog file from template

=== Quick Start
# Quick Start
1. Link or copy the verifla directory (the one under verilog) to your project directory
2. Copy config_verifla.v.template to your working directory and rename it to config_verifla.v
3. Make sure your Verilog tool will look in the verifla directory as a library
Expand All @@ -42,7 +43,7 @@ Possible Enhancements
* triggered - digital output showing LA is triggered
8. Once running you can use the original Java program to create a .v file you will need to simulate or the C program (la2vcd) to create a .vcd you can read using a waveform viewer (like GTKWave)

=== Notes about using GTKWave
# Notes about using GTKWave
The C program creates a simple dump that has the entire capture data and also each byte captured. You can supress the bytes (-W) or the aggregate (-B) if you like. However, you really want to have the signals broken back out like they are in your code.

Suppose you have 16-bits of data like this:
Expand Down
10 changes: 5 additions & 5 deletions c/readme.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
This is a simple utility to capture data from openverifla and dump it directly to a vcd.

=== Compile
# Compile
Should compile with any normal C compiler where libserialport is available (get from Sigrok).
You do need a recent version of libserialport -- the one currently in Ubunut repos will not work.

gcc -o la2vcd la2vcd.c -lserialport

=== Usage
# Usage
Usage: la2vcd [-B] [-W] [-F frequency] [-T timescale] -b baud, -t trigger_pos -c cap_width, -r repeat_width, -n samples -o vcd_file port_name

You need all the lower case options, although baud will default to 9600

-B output only bytes of capture
* -B output only bytes of capture

-W output only words (default is both bytes and words)
* -W output only words (default is both bytes and words)

-F sets frequency in MHz (e.g., -F 250).
* -F sets frequency in MHz (e.g., -F 250).

Or you can set the timescale (e.g, -T 1ns) with -T. Note the timescale should be twice the clock frequency. Default to 1nS and you do your own math.

Expand Down

0 comments on commit acdf7f6

Please sign in to comment.