nand2Tetris
This commit is contained in:
		
							
								
								
									
										57
									
								
								iverilog/nand2tetris/nands/andGate
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								iverilog/nand2tetris/nands/andGate
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| #! /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_0x55a27af99200 .scope module, "andGateTB" "andGateTB" 2 1; | ||||
|  .timescale 0 0; | ||||
| v0x55a27afaa010_0 .var "A", 0 0; | ||||
| v0x55a27afaa0e0_0 .var "B", 0 0; | ||||
| v0x55a27afaa1b0_0 .net "Y", 0 0, L_0x55a27afaa3f0;  1 drivers | ||||
| S_0x55a27af99390 .scope module, "uut" "andGate" 2 5, 3 1 0, S_0x55a27af99200; | ||||
|  .timescale 0 0; | ||||
|     .port_info 0 /INPUT 1 "A"; | ||||
|     .port_info 1 /INPUT 1 "B"; | ||||
|     .port_info 2 /OUTPUT 1 "Y"; | ||||
| L_0x55a27afaa2b0 .functor NAND 1, v0x55a27afaa010_0, v0x55a27afaa0e0_0, C4<1>, C4<1>; | ||||
| L_0x55a27afaa3f0 .functor NAND 1, L_0x55a27afaa2b0, L_0x55a27afaa2b0, C4<1>, C4<1>; | ||||
| v0x55a27af61c00_0 .net "A", 0 0, v0x55a27afaa010_0;  1 drivers | ||||
| v0x55a27afa9d70_0 .net "B", 0 0, v0x55a27afaa0e0_0;  1 drivers | ||||
| v0x55a27afa9e30_0 .net "Y", 0 0, L_0x55a27afaa3f0;  alias, 1 drivers | ||||
| v0x55a27afa9ed0_0 .net "tempOut", 0 0, L_0x55a27afaa2b0;  1 drivers | ||||
|     .scope S_0x55a27af99200; | ||||
| 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 v0x55a27afaa010_0, 0, 1; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa0e0_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa010_0, 0, 1; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa0e0_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa010_0, 0, 1; | ||||
|     %pushi/vec4 0, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa0e0_0, 0, 1; | ||||
|     %delay 10, 0; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa010_0, 0, 1; | ||||
|     %pushi/vec4 1, 0, 1; | ||||
|     %store/vec4 v0x55a27afaa0e0_0, 0, 1; | ||||
|     %delay 10, 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