ajout du Makefile

This commit is contained in:
Elie Deletang
2026-11-25 12:29:33 +01:00
parent 20a1830bc6
commit bc3ff55602
8 changed files with 663 additions and 93 deletions
+128
View File
@@ -0,0 +1,128 @@
#! /c/Source/iverilog-install/bin/vvp
:ivl_version "12.0 (devel)" "(s20150603-1539-g2693dd32b)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision - 12;
:vpi_module "C:\iverilog\lib\ivl\system.vpi";
:vpi_module "C:\iverilog\lib\ivl\vhdl_sys.vpi";
:vpi_module "C:\iverilog\lib\ivl\vhdl_textio.vpi";
:vpi_module "C:\iverilog\lib\ivl\v2005_math.vpi";
:vpi_module "C:\iverilog\lib\ivl\va_math.vpi";
:vpi_module "C:\iverilog\lib\ivl\v2009.vpi";
S_0000025ca043a570 .scope package, "$unit" "$unit" 2 1;
.timescale 0 0;
S_0000025ca043b920 .scope module, "tb_counter_4b" "tb_counter_4b" 3 3;
.timescale -9 -12;
v0000025ca0861840_0 .var "clk", 0 0;
v0000025ca08618e0_0 .net "count", 3 0, v0000025ca043be80_0; 1 drivers
v0000025ca0861980_0 .var "data_in", 3 0;
v0000025ca0861a20_0 .var "en", 0 0;
v0000025ca0861ac0_0 .var "load", 0 0;
v0000025ca0861b60_0 .net "max_tick", 0 0, L_0000025ca0861ed0; 1 drivers
v0000025ca0861e30_0 .var "rst", 0 0;
S_0000025ca043d790 .scope module, "dut" "counter_4b" 3 14, 4 3 0, S_0000025ca043b920;
.timescale -9 -12;
.port_info 0 /INPUT 1 "clk";
.port_info 1 /INPUT 1 "rst";
.port_info 2 /INPUT 1 "en";
.port_info 3 /INPUT 1 "load";
.port_info 4 /INPUT 4 "data_in";
.port_info 5 /OUTPUT 4 "count";
.port_info 6 /OUTPUT 1 "max_tick";
L_0000025ca0862c18 .functor BUFT 1, C4<1111>, C4<0>, C4<0>, C4<0>;
v0000025ca07e2f20_0 .net/2u *"_ivl_0", 3 0, L_0000025ca0862c18; 1 drivers
v0000025ca07e2c30_0 .net "clk", 0 0, v0000025ca0861840_0; 1 drivers
v0000025ca043be80_0 .var "count", 3 0;
v0000025ca043bab0_0 .net "data_in", 3 0, v0000025ca0861980_0; 1 drivers
v0000025ca043d920_0 .net "en", 0 0, v0000025ca0861a20_0; 1 drivers
v0000025ca043d9c0_0 .net "load", 0 0, v0000025ca0861ac0_0; 1 drivers
v0000025ca043da60_0 .net "max_tick", 0 0, L_0000025ca0861ed0; alias, 1 drivers
v0000025ca043db00_0 .net "rst", 0 0, v0000025ca0861e30_0; 1 drivers
E_0000025ca081a8f0 .event posedge, v0000025ca07e2c30_0;
L_0000025ca0861ed0 .cmp/eq 4, v0000025ca043be80_0, L_0000025ca0862c18;
.scope S_0000025ca043d790;
T_0 ;
%wait E_0000025ca081a8f0;
%load/vec4 v0000025ca043db00_0;
%flag_set/vec4 8;
%jmp/0xz T_0.0, 8;
%pushi/vec4 0, 0, 4;
%assign/vec4 v0000025ca043be80_0, 0;
%jmp T_0.1;
T_0.0 ;
%load/vec4 v0000025ca043d9c0_0;
%flag_set/vec4 8;
%jmp/0xz T_0.2, 8;
%load/vec4 v0000025ca043bab0_0;
%assign/vec4 v0000025ca043be80_0, 0;
%jmp T_0.3;
T_0.2 ;
%load/vec4 v0000025ca043d920_0;
%flag_set/vec4 8;
%jmp/0xz T_0.4, 8;
%load/vec4 v0000025ca043be80_0;
%addi 1, 0, 4;
%assign/vec4 v0000025ca043be80_0, 0;
T_0.4 ;
T_0.3 ;
T_0.1 ;
%jmp T_0;
.thread T_0;
.scope S_0000025ca043b920;
T_1 ;
%pushi/vec4 0, 0, 1;
%store/vec4 v0000025ca0861840_0, 0, 1;
T_1.0 ;
%delay 5000, 0;
%load/vec4 v0000025ca0861840_0;
%inv;
%store/vec4 v0000025ca0861840_0, 0, 1;
%jmp T_1.0;
%end;
.thread T_1;
.scope S_0000025ca043b920;
T_2 ;
%vpi_call/w 3 31 "$dumpfile", "counter_4b.vcd" {0 0 0};
%vpi_call/w 3 32 "$dumpvars", 32'sb00000000000000000000000000000000, S_0000025ca043b920 {0 0 0};
%pushi/vec4 1, 0, 1;
%store/vec4 v0000025ca0861e30_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0000025ca0861a20_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0000025ca0861ac0_0, 0, 1;
%pushi/vec4 3, 0, 4;
%store/vec4 v0000025ca0861980_0, 0, 4;
%delay 20000, 0;
%wait E_0000025ca081a8f0;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0000025ca0861e30_0, 0;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0000025ca0861a20_0, 0;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0000025ca0861ac0_0, 0;
%delay 20000, 0;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0000025ca0861ac0_0, 0;
%pushi/vec4 15, 0, 32;
T_2.0 %dup/vec4;
%pushi/vec4 0, 0, 32;
%cmp/s;
%jmp/1xz T_2.1, 5;
%jmp/1 T_2.1, 4;
%pushi/vec4 1, 0, 32;
%sub;
%wait E_0000025ca081a8f0;
%jmp T_2.0;
T_2.1 ;
%pop/vec4 1;
%delay 20000, 0;
%vpi_call/w 3 58 "$display", "Fin de la simulation." {0 0 0};
%vpi_call/w 3 59 "$finish" {0 0 0};
%end;
.thread T_2;
# The file index is used to find the file name in the following table.
:file_names 5;
"N/A";
"<interactive>";
"-";
"counter_4b/tb_counter_4b.sv";
"counter_4b/counter_4b.sv";