Skip to content

Instantly share code, notes, and snippets.

@sgherbst
Created November 6, 2017 20:32
Show Gist options
  • Select an option

  • Save sgherbst/6a4bb1b9bdaf8da327a5cacc1fcaa704 to your computer and use it in GitHub Desktop.

Select an option

Save sgherbst/6a4bb1b9bdaf8da327a5cacc1fcaa704 to your computer and use it in GitHub Desktop.
vvp realtime output issue
#! /usr/local/bin/vvp
:ivl_version "11.0 (devel)" "(s20150603-460-ga4274400)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision + 0;
:vpi_module "system";
:vpi_module "vhdl_sys";
:vpi_module "vhdl_textio";
:vpi_module "v2005_math";
:vpi_module "va_math";
S_0x7fcc57500840 .scope module, "test" "test" 2 1;
.timescale 0 0;
v0x7fcc57500670_0 .var/i "i", 31 0;
.scope S_0x7fcc57500840;
T_0 ;
%vpi_call 2 4 "$display", "hello" {0 0 0};
%pushi/vec4 0, 0, 32;
%store/vec4 v0x7fcc57500670_0, 0, 32;
T_0.0 ;
%load/vec4 v0x7fcc57500670_0;
%cmpi/s 100000000, 0, 32;
%jmp/0xz T_0.1, 5;
%delay 1, 0;
%load/vec4 v0x7fcc57500670_0;
%addi 1, 0, 32;
%store/vec4 v0x7fcc57500670_0, 0, 32;
%jmp T_0.0;
T_0.1 ;
%vpi_call 2 8 "$display", "goodbye" {0 0 0};
%vpi_call 2 9 "$finish" {0 0 0};
%end;
.thread T_0;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"test.v";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment