Code Monkey home page Code Monkey logo

verilog-vcd-parser's People

Contributors

antonblanchard avatar bassmunkee avatar ben-marshall avatar hofstee avatar mjc0608 avatar oharboe avatar udif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

verilog-vcd-parser's Issues

The latest version doesn't seem to recognize escaped identifiers.

Consider this example:

$scope module top $end
  $var wire 1 (C \$procdff$4.Q[2] $end
  $var wire 1 (D \$procdff$4.Q[1] $end
  $var wire 1 (E \$procdff$4.Q[0] $end
  $var wire 1 (G \$procdff$4.D[2] $end
  $var wire 1 (H \$procdff$4.D[1] $end
  $var wire 1 (I \$procdff$4.D[0] $end
$upscope $end

It throws a yacc error:

line 2
 : syntax error, unexpected TOK_IDENTIFIER, expecting TOK_KW_END

Parser fails to recognized single character symbol names

Parser failed with the following VCD line:
$var wire 1 - D [3] $end

Reason was that VCDScanner.l contained the following:
SCOPE_IDENTIFIER [a-zA-Z_][a-zA-Z_0-9\(\)]+
Changing this to:
SCOPE_IDENTIFIER [a-zA-Z_][a-zA-Z_0-9\(\)]*
Fixed the issue.

Parsing multiple files

In scan_end function, the lexer state was popped. However in scan_begin, it was not pushed.
Initially, I was thinking this should be okay. But it turned out that if I instantiate another VCDFileParser after the first one was destructed, the second would result in segmentation fault even if it is parsing the same file.

Cygwin compilation

I had just one error from the compiler which I eliminated with a simple change to the Makefile (line 17) from:

CXXFLAGS += -I$(BUILD_DIR) -I$(SRC_DIR) -g -std=c++0x

to:

CXXFLAGS += -I$(BUILD_DIR) -I$(SRC_DIR) -g -std=gnu++0x

Unable to handle 2D array signals?

Fail to handle such definition in a scope (regs[0] ==> [[[reg[63:0] regs[31:0];]]] is the register file in CPU core)?
line 1663 of wave.vcd: $var wire 64 j, regs[0] [63:0] $end
$var wire 64 ~, regs[10] [63:0] $end
$var wire 64 "- regs[11] [63:0] $end

Parsing~/wave.vcd
line 1663
: syntax error, unexpected TOK_DECIMAL_NUM, expecting TOK_KW_END
Parse Failed.

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.