Struct vcd::Writer [] [src]

pub struct Writer<'w> { /* fields omitted */ }

Struct wrapping an io::Write with methods for writing VCD commands and data.

Methods

impl<'s> Writer<'s>
[src]

Creates a Writer, wrapping an io::Write.

let mut buf = Vec::new();
let mut vcd = vcd::Writer::new(&mut buf);

Writes a complete header with the fields from a Header struct from the parser.

Writes a $comment command.

Writes a $date command.

Writes a $version command.

Writes a $timescale command.

Writes a $scope command.

Writes a $scope command for a module.

Convenience wrapper around scope_def.

Writes an $upscope command.

Writes a $scope command, a series of $var commands, and an $upscope commands from a Scope structure from the parser.

Writes a $var command with a specified id.

Writes a $var command with the next available ID, returning the assigned ID.

Convenience wrapper around var_def.

Adds a $var for a wire with the next available ID, returning the assigned ID.

Convenience wrapper around add_var.

Writes a $var command from a Var structure from the parser.

Writes a $enddefinitions command to end the header.

Writes a #xxx timestamp.

Writes a change to a scalar variable.

Writes a change to a vector variable.

Writes a change to a real variable.

Writes a change to a string variable.

Writes the beginning of a simulation command.

Writes an $end to end a simulation command.

Writes a command from a Command enum as parsed by the parser.