nand2tetris
This commit is contained in:
		
							
								
								
									
										58
									
								
								iverilog/nand2tetris/nands/and16/andGate
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								iverilog/nand2tetris/nands/and16/andGate
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| #! /usr/bin/vvp | ||||
| :ivl_version "11.0 (stable)"; | ||||
| :ivl_delay_selection "TYPICAL"; | ||||
| :vpi_time_precision + 0; | ||||
| :vpi_module "/usr/lib/x86_64-linux-gnu/ivl/system.vpi"; | ||||
| :vpi_module "/usr/lib/x86_64-linux-gnu/ivl/vhdl_sys.vpi"; | ||||
| :vpi_module "/usr/lib/x86_64-linux-gnu/ivl/vhdl_textio.vpi"; | ||||
| :vpi_module "/usr/lib/x86_64-linux-gnu/ivl/v2005_math.vpi"; | ||||
| :vpi_module "/usr/lib/x86_64-linux-gnu/ivl/va_math.vpi"; | ||||
| S_0x56317b794200 .scope module, "andGateTB" "andGateTB" 2 1; | ||||
|  .timescale 0 0; | ||||
| v0x56317b7a5140_0 .var "A_i", 0 0; | ||||
| v0x56317b7a5210_0 .var "B_i", 0 0; | ||||
| v0x56317b7a52e0_0 .net "Y_o", 0 0, L_0x56317b7a5520;  1 drivers | ||||
| S_0x56317b794390 .scope module, "uut" "andGate" 2 5, 3 1 0, S_0x56317b794200; | ||||
|  .timescale 0 0; | ||||
|     .port_info 0 /INPUT 1 "A_i"; | ||||
|     .port_info 1 /INPUT 1 "B_i"; | ||||
|     .port_info 2 /OUTPUT 1 "Y_o"; | ||||
| L_0x56317b7a53e0 .functor NAND 1, v0x56317b7a5140_0, v0x56317b7a5210_0, C4<1>, C4<1>; | ||||
| L_0x56317b7a5520 .functor NAND 1, L_0x56317b7a53e0, L_0x56317b7a53e0, C4<1>, C4<1>; | ||||
| v0x56317b75cc00_0 .net "A_i", 0 0, v0x56317b7a5140_0;  1 drivers | ||||
| v0x56317b7a4ea0_0 .net "B_i", 0 0, v0x56317b7a5210_0;  1 drivers | ||||
| v0x56317b7a4f60_0 .net "Y_o", 0 0, L_0x56317b7a5520;  alias, 1 drivers | ||||
| v0x56317b7a5000_0 .net "nand_out", 0 0, L_0x56317b7a53e0;  1 drivers | ||||
|     .scope S_0x56317b794200; | ||||
| T_0 ; | ||||
|     %vpi_call 2 12 "$dumpfile", "andGate.vcd" {0 0 0}; | ||||
|     %vpi_call 2 13 "$dumpvars" {0 0 0}; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5140_0, 0, 1; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5210_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5140_0, 0, 1; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5210_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5140_0, 0, 1; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5210_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5140_0, 0, 1; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x56317b7a5210_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %vpi_call 2 26 "$finish" {0 0 0}; | ||||
|     %end; | ||||
|     .thread T_0; | ||||
| # The file index is used to find the file name in the following table. | ||||
| :file_names 4; | ||||
|     "N/A"; | ||||
|     "<interactive>"; | ||||
|     "andGateTB.v"; | ||||
|     "andGate.v"; | ||||
		Reference in New Issue
	
	Block a user