You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
4.2 KiB
Plaintext

#! /usr/local/Cellar/icarus-verilog/12.0/bin/vvp
:ivl_version "12.0 (stable)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision - 9;
:vpi_module "/usr/local/Cellar/icarus-verilog/12.0/lib/ivl/system.vpi";
:vpi_module "/usr/local/Cellar/icarus-verilog/12.0/lib/ivl/vhdl_sys.vpi";
:vpi_module "/usr/local/Cellar/icarus-verilog/12.0/lib/ivl/vhdl_textio.vpi";
:vpi_module "/usr/local/Cellar/icarus-verilog/12.0/lib/ivl/v2005_math.vpi";
:vpi_module "/usr/local/Cellar/icarus-verilog/12.0/lib/ivl/va_math.vpi";
S_0x7fb95300a8d0 .scope module, "tb_lm" "tb_lm" 2 3;
.timescale -9 -9;
v0x7fb953008920_0 .var "CNT", 5 0;
v0x7fb95301a6d0_0 .var "flag", 0 0;
v0x7fb95301a770_0 .var "k_1", 0 0;
v0x7fb95301a800_0 .var "k_2", 0 0;
v0x7fb95301a8a0_0 .var "sys_clk", 0 0;
v0x7fb95301a980_0 .var "sys_rst", 0 0;
v0x7fb95301aa20_0 .var "x", 7 0;
v0x7fb95301aad0_0 .var "y", 7 0;
E_0x7fb9530086e0/0 .event negedge, v0x7fb95301a980_0;
E_0x7fb9530086e0/1 .event posedge, v0x7fb95301a8a0_0;
E_0x7fb9530086e0 .event/or E_0x7fb9530086e0/0, E_0x7fb9530086e0/1;
.scope S_0x7fb95300a8d0;
T_0 ;
%delay 10, 0;
%load/vec4 v0x7fb95301a8a0_0;
%inv;
%store/vec4 v0x7fb95301a8a0_0, 0, 1;
%jmp T_0;
.thread T_0;
.scope S_0x7fb95300a8d0;
T_1 ;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x7fb95301a8a0_0, 0;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x7fb95301a980_0, 0;
%delay 200, 0;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x7fb95301a980_0, 0;
%end;
.thread T_1;
.scope S_0x7fb95300a8d0;
T_2 ;
%wait E_0x7fb9530086e0;
%load/vec4 v0x7fb95301a980_0;
%cmpi/e 0, 0, 1;
%jmp/0xz T_2.0, 4;
%pushi/vec4 0, 0, 6;
%assign/vec4 v0x7fb953008920_0, 0;
%jmp T_2.1;
T_2.0 ;
%load/vec4 v0x7fb953008920_0;
%cmpi/u 24, 0, 6;
%jmp/0xz T_2.2, 5;
%load/vec4 v0x7fb953008920_0;
%addi 1, 0, 6;
%assign/vec4 v0x7fb953008920_0, 0;
%jmp T_2.3;
T_2.2 ;
%pushi/vec4 0, 0, 6;
%assign/vec4 v0x7fb953008920_0, 0;
T_2.3 ;
T_2.1 ;
%jmp T_2;
.thread T_2;
.scope S_0x7fb95300a8d0;
T_3 ;
%wait E_0x7fb9530086e0;
%load/vec4 v0x7fb95301a980_0;
%cmpi/e 0, 0, 1;
%jmp/0xz T_3.0, 4;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x7fb95301a770_0, 0;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x7fb95301a800_0, 0;
%pushi/vec4 0, 0, 8;
%assign/vec4 v0x7fb95301aa20_0, 0;
%pushi/vec4 255, 0, 8;
%assign/vec4 v0x7fb95301aad0_0, 0;
%jmp T_3.1;
T_3.0 ;
%load/vec4 v0x7fb95301a800_0;
%load/vec4 v0x7fb95301a770_0;
%concat/vec4; draw_concat_vec4
%cmpi/e 2, 0, 2;
%jmp/0xz T_3.2, 4;
%load/vec4 v0x7fb95301a6d0_0;
%dup/vec4;
%pushi/vec4 0, 0, 1;
%cmp/u;
%jmp/1 T_3.4, 6;
%dup/vec4;
%pushi/vec4 1, 0, 1;
%cmp/u;
%jmp/1 T_3.5, 6;
%jmp T_3.6;
T_3.4 ;
%pushi/vec4 170, 0, 8;
%assign/vec4 v0x7fb95301aa20_0, 0;
%jmp T_3.6;
T_3.5 ;
%pushi/vec4 85, 0, 8;
%assign/vec4 v0x7fb95301aa20_0, 0;
%jmp T_3.6;
T_3.6 ;
%pop/vec4 1;
%jmp T_3.3;
T_3.2 ;
%load/vec4 v0x7fb95301a800_0;
%load/vec4 v0x7fb95301a770_0;
%concat/vec4; draw_concat_vec4
%cmpi/e 1, 0, 2;
%jmp/0xz T_3.7, 4;
%load/vec4 v0x7fb95301a6d0_0;
%dup/vec4;
%pushi/vec4 0, 0, 1;
%cmp/u;
%jmp/1 T_3.9, 6;
%dup/vec4;
%pushi/vec4 1, 0, 1;
%cmp/u;
%jmp/1 T_3.10, 6;
%jmp T_3.11;
T_3.9 ;
%pushi/vec4 240, 0, 8;
%assign/vec4 v0x7fb95301aa20_0, 0;
%jmp T_3.11;
T_3.10 ;
%pushi/vec4 15, 0, 8;
%assign/vec4 v0x7fb95301aa20_0, 0;
%jmp T_3.11;
T_3.11 ;
%pop/vec4 1;
%jmp T_3.8;
T_3.7 ;
%pushi/vec4 0, 0, 8;
%assign/vec4 v0x7fb95301aa20_0, 0;
T_3.8 ;
T_3.3 ;
T_3.1 ;
%jmp T_3;
.thread T_3;
.scope S_0x7fb95300a8d0;
T_4 ;
%wait E_0x7fb9530086e0;
%load/vec4 v0x7fb95301a980_0;
%cmpi/e 0, 0, 1;
%jmp/0xz T_4.0, 4;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x7fb95301a6d0_0, 0;
%jmp T_4.1;
T_4.0 ;
%load/vec4 v0x7fb953008920_0;
%cmpi/e 24, 0, 6;
%jmp/0xz T_4.2, 4;
%load/vec4 v0x7fb95301a6d0_0;
%nor/r;
%assign/vec4 v0x7fb95301a6d0_0, 0;
T_4.2 ;
T_4.1 ;
%jmp T_4;
.thread T_4;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"tb_lm.v";