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.
344 lines
9.0 KiB
Plaintext
344 lines
9.0 KiB
Plaintext
#! /usr/local/Cellar/icarus-verilog/12.0/bin/vvp
|
|
:ivl_version "12.0 (stable)";
|
|
:ivl_delay_selection "TYPICAL";
|
|
:vpi_time_precision + 0;
|
|
: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_0x7fc93e114320 .scope module, "uart_rx" "uart_rx" 2 1;
|
|
.timescale 0 0;
|
|
.port_info 0 /INPUT 1 "sys_clk";
|
|
.port_info 1 /INPUT 1 "sys_rst";
|
|
.port_info 2 /INPUT 1 "rxd";
|
|
.port_info 3 /OUTPUT 1 "rx_done";
|
|
.port_info 4 /OUTPUT 8 "rx_data";
|
|
P_0x7fc93e114d20 .param/l "BPS" 0 2 12, +C4<00000000000000011100001000000000>;
|
|
P_0x7fc93e114d60 .param/l "B_MAX" 1 2 14, +C4<00000000000000000000000110110010>;
|
|
P_0x7fc93e114da0 .param/l "CLK_FREQ" 0 2 11, +C4<00000010111110101111000010000000>;
|
|
L_0x7fc93e129c60 .functor AND 1, v0x7fc93e129810_0, L_0x7fc93e129bc0, C4<1>, C4<1>;
|
|
L_0x7fc93e129e10 .functor AND 1, L_0x7fc93e129c60, L_0x7fc93e129d50, C4<1>, C4<1>;
|
|
v0x7fc93e114e30_0 .net *"_ivl_1", 0 0, L_0x7fc93e129bc0; 1 drivers
|
|
v0x7fc93e129110_0 .net *"_ivl_3", 0 0, L_0x7fc93e129c60; 1 drivers
|
|
v0x7fc93e1291b0_0 .net *"_ivl_5", 0 0, L_0x7fc93e129d50; 1 drivers
|
|
v0x7fc93e129240_0 .var "baud_cnt", 15 0;
|
|
v0x7fc93e1292f0_0 .var "rx_busy", 0 0;
|
|
v0x7fc93e1293d0_0 .var "rx_d_cnt", 3 0;
|
|
v0x7fc93e129480_0 .var "rx_data", 7 0;
|
|
v0x7fc93e129530_0 .var "rx_done", 0 0;
|
|
o0x7fc93e232188 .functor BUFZ 1, C4<z>; HiZ drive
|
|
v0x7fc93e1295d0_0 .net "rxd", 0 0, o0x7fc93e232188; 0 drivers
|
|
v0x7fc93e1296e0_0 .var "rxd_d0", 0 0;
|
|
v0x7fc93e129770_0 .var "rxd_d1", 0 0;
|
|
v0x7fc93e129810_0 .var "rxd_d2", 0 0;
|
|
v0x7fc93e1298b0_0 .net "start_en", 0 0, L_0x7fc93e129e10; 1 drivers
|
|
o0x7fc93e232278 .functor BUFZ 1, C4<z>; HiZ drive
|
|
v0x7fc93e129950_0 .net "sys_clk", 0 0, o0x7fc93e232278; 0 drivers
|
|
o0x7fc93e2322a8 .functor BUFZ 1, C4<z>; HiZ drive
|
|
v0x7fc93e1299f0_0 .net "sys_rst", 0 0, o0x7fc93e2322a8; 0 drivers
|
|
v0x7fc93e129a90_0 .var "temp_rx_data", 7 0;
|
|
E_0x7fc93e106d90/0 .event negedge, v0x7fc93e1299f0_0;
|
|
E_0x7fc93e106d90/1 .event posedge, v0x7fc93e129950_0;
|
|
E_0x7fc93e106d90 .event/or E_0x7fc93e106d90/0, E_0x7fc93e106d90/1;
|
|
L_0x7fc93e129bc0 .reduce/nor v0x7fc93e129770_0;
|
|
L_0x7fc93e129d50 .reduce/nor v0x7fc93e1292f0_0;
|
|
.scope S_0x7fc93e114320;
|
|
T_0 ;
|
|
%wait E_0x7fc93e106d90;
|
|
%load/vec4 v0x7fc93e1299f0_0;
|
|
%cmpi/e 0, 0, 1;
|
|
%jmp/0xz T_0.0, 4;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e1296e0_0, 0;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e129770_0, 0;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e129810_0, 0;
|
|
%jmp T_0.1;
|
|
T_0.0 ;
|
|
%load/vec4 v0x7fc93e1295d0_0;
|
|
%assign/vec4 v0x7fc93e1296e0_0, 0;
|
|
%load/vec4 v0x7fc93e1296e0_0;
|
|
%assign/vec4 v0x7fc93e129770_0, 0;
|
|
%load/vec4 v0x7fc93e129770_0;
|
|
%assign/vec4 v0x7fc93e129810_0, 0;
|
|
T_0.1 ;
|
|
%jmp T_0;
|
|
.thread T_0;
|
|
.scope S_0x7fc93e114320;
|
|
T_1 ;
|
|
%wait E_0x7fc93e106d90;
|
|
%load/vec4 v0x7fc93e1299f0_0;
|
|
%cmpi/e 0, 0, 1;
|
|
%jmp/0xz T_1.0, 4;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e1292f0_0, 0;
|
|
%jmp T_1.1;
|
|
T_1.0 ;
|
|
%load/vec4 v0x7fc93e1298b0_0;
|
|
%flag_set/vec4 8;
|
|
%jmp/0xz T_1.2, 8;
|
|
%pushi/vec4 1, 0, 1;
|
|
%assign/vec4 v0x7fc93e1292f0_0, 0;
|
|
%jmp T_1.3;
|
|
T_1.2 ;
|
|
%load/vec4 v0x7fc93e1293d0_0;
|
|
%pad/u 32;
|
|
%cmpi/e 9, 0, 32;
|
|
%flag_get/vec4 4;
|
|
%jmp/0 T_1.6, 4;
|
|
%load/vec4 v0x7fc93e129240_0;
|
|
%pad/u 32;
|
|
%pushi/vec4 434, 0, 32;
|
|
%cmp/e;
|
|
%flag_get/vec4 4;
|
|
%and;
|
|
T_1.6;
|
|
%flag_set/vec4 8;
|
|
%jmp/0xz T_1.4, 8;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e1292f0_0, 0;
|
|
%jmp T_1.5;
|
|
T_1.4 ;
|
|
%load/vec4 v0x7fc93e1292f0_0;
|
|
%assign/vec4 v0x7fc93e1292f0_0, 0;
|
|
T_1.5 ;
|
|
T_1.3 ;
|
|
T_1.1 ;
|
|
%jmp T_1;
|
|
.thread T_1;
|
|
.scope S_0x7fc93e114320;
|
|
T_2 ;
|
|
%wait E_0x7fc93e106d90;
|
|
%load/vec4 v0x7fc93e1299f0_0;
|
|
%cmpi/e 0, 0, 1;
|
|
%jmp/0xz T_2.0, 4;
|
|
%pushi/vec4 0, 0, 16;
|
|
%assign/vec4 v0x7fc93e129240_0, 0;
|
|
%jmp T_2.1;
|
|
T_2.0 ;
|
|
%load/vec4 v0x7fc93e1292f0_0;
|
|
%flag_set/vec4 8;
|
|
%jmp/0xz T_2.2, 8;
|
|
%load/vec4 v0x7fc93e129240_0;
|
|
%pad/u 32;
|
|
%cmpi/e 433, 0, 32;
|
|
%jmp/0xz T_2.4, 4;
|
|
%pushi/vec4 0, 0, 16;
|
|
%assign/vec4 v0x7fc93e129240_0, 0;
|
|
%jmp T_2.5;
|
|
T_2.4 ;
|
|
%load/vec4 v0x7fc93e129240_0;
|
|
%addi 1, 0, 16;
|
|
%assign/vec4 v0x7fc93e129240_0, 0;
|
|
T_2.5 ;
|
|
%jmp T_2.3;
|
|
T_2.2 ;
|
|
%pushi/vec4 0, 0, 16;
|
|
%assign/vec4 v0x7fc93e129240_0, 0;
|
|
T_2.3 ;
|
|
T_2.1 ;
|
|
%jmp T_2;
|
|
.thread T_2;
|
|
.scope S_0x7fc93e114320;
|
|
T_3 ;
|
|
%wait E_0x7fc93e106d90;
|
|
%load/vec4 v0x7fc93e1299f0_0;
|
|
%cmpi/e 0, 0, 1;
|
|
%jmp/0xz T_3.0, 4;
|
|
%pushi/vec4 0, 0, 4;
|
|
%assign/vec4 v0x7fc93e1293d0_0, 0;
|
|
%jmp T_3.1;
|
|
T_3.0 ;
|
|
%load/vec4 v0x7fc93e1292f0_0;
|
|
%flag_set/vec4 8;
|
|
%jmp/0xz T_3.2, 8;
|
|
%load/vec4 v0x7fc93e129240_0;
|
|
%pad/u 32;
|
|
%cmpi/e 433, 0, 32;
|
|
%jmp/0xz T_3.4, 4;
|
|
%load/vec4 v0x7fc93e1293d0_0;
|
|
%addi 1, 0, 4;
|
|
%assign/vec4 v0x7fc93e1293d0_0, 0;
|
|
%jmp T_3.5;
|
|
T_3.4 ;
|
|
%load/vec4 v0x7fc93e1293d0_0;
|
|
%assign/vec4 v0x7fc93e1293d0_0, 0;
|
|
T_3.5 ;
|
|
%jmp T_3.3;
|
|
T_3.2 ;
|
|
%pushi/vec4 0, 0, 4;
|
|
%assign/vec4 v0x7fc93e1293d0_0, 0;
|
|
T_3.3 ;
|
|
T_3.1 ;
|
|
%jmp T_3;
|
|
.thread T_3;
|
|
.scope S_0x7fc93e114320;
|
|
T_4 ;
|
|
%wait E_0x7fc93e106d90;
|
|
%load/vec4 v0x7fc93e1299f0_0;
|
|
%cmpi/e 0, 0, 1;
|
|
%jmp/0xz T_4.0, 4;
|
|
%pushi/vec4 0, 0, 8;
|
|
%assign/vec4 v0x7fc93e129a90_0, 0;
|
|
%jmp T_4.1;
|
|
T_4.0 ;
|
|
%load/vec4 v0x7fc93e1292f0_0;
|
|
%flag_set/vec4 8;
|
|
%jmp/0xz T_4.2, 8;
|
|
%load/vec4 v0x7fc93e129240_0;
|
|
%pad/u 32;
|
|
%cmpi/e 434, 0, 32;
|
|
%jmp/0xz T_4.4, 4;
|
|
%load/vec4 v0x7fc93e1293d0_0;
|
|
%dup/vec4;
|
|
%pushi/vec4 1, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.6, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 2, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.7, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 3, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.8, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 4, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.9, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 5, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.10, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 6, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.11, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 7, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.12, 6;
|
|
%dup/vec4;
|
|
%pushi/vec4 8, 0, 4;
|
|
%cmp/u;
|
|
%jmp/1 T_4.13, 6;
|
|
%jmp T_4.15;
|
|
T_4.6 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 0, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.7 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 1, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.8 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 2, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.9 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 3, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.10 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 4, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.11 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 5, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.12 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 6, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.13 ;
|
|
%load/vec4 v0x7fc93e129810_0;
|
|
%ix/load 4, 7, 0;
|
|
%ix/load 5, 0, 0;
|
|
%flag_set/imm 4, 0;
|
|
%assign/vec4/off/d v0x7fc93e129a90_0, 4, 5;
|
|
%jmp T_4.15;
|
|
T_4.15 ;
|
|
%pop/vec4 1;
|
|
%jmp T_4.5;
|
|
T_4.4 ;
|
|
%load/vec4 v0x7fc93e129a90_0;
|
|
%assign/vec4 v0x7fc93e129a90_0, 0;
|
|
T_4.5 ;
|
|
%jmp T_4.3;
|
|
T_4.2 ;
|
|
%pushi/vec4 0, 0, 8;
|
|
%assign/vec4 v0x7fc93e129a90_0, 0;
|
|
T_4.3 ;
|
|
T_4.1 ;
|
|
%jmp T_4;
|
|
.thread T_4;
|
|
.scope S_0x7fc93e114320;
|
|
T_5 ;
|
|
%wait E_0x7fc93e106d90;
|
|
%load/vec4 v0x7fc93e1299f0_0;
|
|
%cmpi/e 0, 0, 1;
|
|
%jmp/0xz T_5.0, 4;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e129530_0, 0;
|
|
%pushi/vec4 0, 0, 8;
|
|
%assign/vec4 v0x7fc93e129480_0, 0;
|
|
%jmp T_5.1;
|
|
T_5.0 ;
|
|
%load/vec4 v0x7fc93e1293d0_0;
|
|
%pad/u 32;
|
|
%cmpi/e 9, 0, 32;
|
|
%flag_get/vec4 4;
|
|
%jmp/0 T_5.4, 4;
|
|
%load/vec4 v0x7fc93e129240_0;
|
|
%pad/u 32;
|
|
%pushi/vec4 434, 0, 32;
|
|
%cmp/e;
|
|
%flag_get/vec4 4;
|
|
%and;
|
|
T_5.4;
|
|
%flag_set/vec4 8;
|
|
%jmp/0xz T_5.2, 8;
|
|
%pushi/vec4 1, 0, 1;
|
|
%assign/vec4 v0x7fc93e129530_0, 0;
|
|
%load/vec4 v0x7fc93e129a90_0;
|
|
%assign/vec4 v0x7fc93e129480_0, 0;
|
|
%jmp T_5.3;
|
|
T_5.2 ;
|
|
%pushi/vec4 0, 0, 1;
|
|
%assign/vec4 v0x7fc93e129530_0, 0;
|
|
%load/vec4 v0x7fc93e129480_0;
|
|
%assign/vec4 v0x7fc93e129480_0, 0;
|
|
T_5.3 ;
|
|
T_5.1 ;
|
|
%jmp T_5;
|
|
.thread T_5;
|
|
# The file index is used to find the file name in the following table.
|
|
:file_names 3;
|
|
"N/A";
|
|
"<interactive>";
|
|
"uart_rx.v";
|