?? 模擬結(jié)果.txt
字號(hào):
# Reading C:/Modeltech_6.1f/tcl/vsim/pref.tcl
# OpenFile "D:/16bitcpu/test.v"
vlog -reportprogress 300 -work work D:/16bitcpu/test.v
# Model Technology ModelSim SE vlog 6.1f Compiler 2006.05 May 12 2006
# -- Compiling module CPU
# -- Compiling module rom
# -- Compiling module ram
# -- Compiling module decoder
# -- Compiling module test
#
# Top level modules:
# test
vsim work.test
# vsim work.test
# Loading work.test
# Loading work.CPU
# Loading work.decoder
# Loading work.rom
# Loading work.ram
add wave sim:/test/*
run -all
#
# *************************************************
# **The following debug task are avilable:**
# * "test1; " to load the 1st diagnostic program. *
# * "test2; " to load the 2nd diagnostic program. *
# * "test3; " to load the Fibonacci program. *
# * "test4; " to load the 自然數(shù)平方和 program. *
# * "test5; " to load the 加解密 program. *
# *****************************************************
#
# Rom loading successfully!
# Ram loading successfully!
#
# *** RUNNING CPUtest1 - The Basic CPU Diagnostic Program ***
#
# TIME INSTR PC ADDR DATA
# ---------- ---- ----- ----- -----
# 500.0ns JMP 0000 0000 zzzz
# 900.0ns JMP 003c 003c zzzz
# 1300.0ns LDA 0003 1800 0000
# 1700.0ns SKZ 0004 0004 zzzz
# 2100.0ns LDA 0006 1802 ffff
# 2500.0ns SKZ 0007 0007 zzzz
# 2900.0ns JMP 0008 0008 zzzz
# 3300.0ns STO 000a 1804 ffff
# 3700.0ns LDA 000b 1800 0000
# 4100.0ns STO 000c 1804 0000
# 4500.0ns LDA 000d 1804 0000
# 4900.0ns SKZ 000e 000e zzzz
# 5300.0ns XOR 0010 1802 ffff
# 5700.0ns SKZ 0011 0011 zzzz
# 6100.0ns JMP 0012 0012 zzzz
# 6500.0ns XOR 0014 1802 ffff
# 6900.0ns SKZ 0015 0015 zzzz
# 7300.0ns HLT 0017 0017 zzzz
#
# **********************************************
# **A halt instruction has been processed!!!
# ************************************************
# 7700.0ns HLT 0017 0017 zzzz
# Break at D:/16bitcpu/test.v line 124
run -all
# Rom loading successfully!
# Ram loading successfully!
#
# *** RUNNING CPUtest2 - The Advanced CPU Diagnostic Program ***
#
# TIME INSTR PC ADDR DATA
# ---------- --- ----- ----- ----
# 8100.0ns LDA 0000 1802 aaaa
# 8500.0ns AND 0001 1804 ffff
# 8900.0ns XOR 0002 1802 aaaa
# 9300.0ns SKZ 0003 0003 zzzz
# 9700.0ns ADD 0005 1800 0001
# 10100.0ns SKZ 0006 0006 zzzz
# 10500.0ns JMP 0007 0007 zzzz
# 10900.0ns XOR 0009 1804 ffff
# 11300.0ns ADD 000a 1800 0001
# 11700.0ns STO 000b 1806 ffff
# 12100.0ns LDA 000c 1800 0001
# 12500.0ns ADD 000d 1806 ffff
# 12900.0ns SKZ 000e 000e zzzz
# 13300.0ns HLT 0010 0010 zzzz
#
# **********************************************
# **A halt instruction has been processed!!!
# ************************************************
# 13700.0ns HLT 0010 0010 zzzz
# Break at D:/16bitcpu/test.v line 126
run -all
# Rom loading successfully!
# Ram loading successfully!
#
# *** RUNNING CPUtest3 - An Executable Program ***
# *** This program should calculate the fibonacci ***
#
# TIME FIBONACCI NUMBER
# --------- -----------------
# 16800.0ns 1
# 20400.0ns 1
# 24000.0ns 2
# 27600.0ns 3
# 31200.0ns 5
# 34800.0ns 8
# 38400.0ns 13
# 42000.0ns 21
# 45600.0ns 34
# 49200.0ns 55
# 52800.0ns 89
# 56400.0ns 144
# 60000.0ns 233
# 63600.0ns 377
# 67200.0ns 610
# 70800.0ns 987
# 74400.0ns 1597
# 78000.0ns 2584
# 81600.0ns 4181
# 85200.0ns 6765
# 88800.0ns 10946
#
# **********************************************
# **A halt instruction has been processed!!!
# ************************************************
# Break at D:/16bitcpu/test.v line 128
run -all
# Rom loading successfully!
# Ram loading successfully!
#
# *** RUNNING CPUtest4 - An Executable Program ***
# *** This program should calculate the N N2 SUM ***
#
# TIME N+1 N2 SUM
# --------- --- ---- -----
# 174600.0ns 2 1 1
# 259000.0ns 3 4 5
# 344600.0ns 4 9 14
# 429000.0ns 5 16 30
# 514600.0ns 6 25 55
# 600200.0ns 7 36 91
# 687000.0ns 8 49 140
# 771400.0ns 9 64 204
# 857000.0ns 10 81 285
# 942600.0ns 11 100 385
# 1029400.0ns 12 121 506
# 1115000.0ns 13 144 650
# 1201800.0ns 14 169 819
# 1288600.0ns 15 196 1015
# 1376600.0ns 16 225 1240
# 1461000.0ns 17 256 1496
# 1546600.0ns 18 289 1785
# 1632200.0ns 19 324 2109
# 1719000.0ns 20 361 2470
# 1804600.0ns 21 400 2870
# 1891400.0ns 22 441 3311
# 1978200.0ns 23 484 3795
# 2066200.0ns 24 529 4324
# 2151800.0ns 25 576 4900
# 2238600.0ns 26 625 5525
# 2325400.0ns 27 676 6201
# 2413400.0ns 28 729 6930
# 2500200.0ns 29 784 7714
# 2588200.0ns 30 841 8555
# 2676200.0ns 31 900 9455
# 2765400.0ns 32 961 10416
# 2849800.0ns 33 1024 11440
# 2935400.0ns 34 1089 12529
# 3021000.0ns 35 1156 13685
# 3107800.0ns 36 1225 14910
# 3193400.0ns 37 1296 16206
# 3280200.0ns 38 1369 17575
# 3367000.0ns 39 1444 19019
# 3455000.0ns 40 1521 20540
# 3540600.0ns 41 1600 22140
# 3627400.0ns 42 1681 23821
# 3714200.0ns 43 1764 25585
# 3802200.0ns 44 1849 27434
# 3889000.0ns 45 1936 29370
# 3977000.0ns 46 2025 31395
# 4065000.0ns 47 2116 33511
# 4154200.0ns 48 2209 35720
# 4239800.0ns 49 2304 38024
# 4326600.0ns 50 2401 40425
#
# **********************************************
# **A halt instruction has been processed!!!
# ************************************************
# Break at D:/16bitcpu/test.v line 130
run -all
# Rom loading successfully!
# Ram loading successfully!
#
# **********************************************
# **A halt instruction has been processed!!!
# ************************************************
#
# *** RUNNING CPUtest5 - An Executable Program ***
# *** 這個(gè)程序?qū)⒁粔K隨機(jī)數(shù)據(jù)加密后再解密 計(jì)算完畢統(tǒng)一顯示如下: ***
# No 原始數(shù)據(jù) 加密數(shù)據(jù) 解密數(shù)據(jù)
# -------------------------------------------------------------------
# 1 37588 59135 37588
# 2 26357 14866 26357
# 3 25770 53129 25770
# 4 35415 35688 35415
# 5 4769 26110 4769
# 6 933 10978 933
# 7 19745 47486 19745
# 8 29973 29106 29973
# 9 38202 54009 38202
# 10 31933 22378 31933
# 11 22191 35248 22191
# 12 59863 43496 59863
# 13 14964 7327 14964
# 14 56143 28752 56143
# 15 11243 58188 11243
# 16 14569 9302 14569
# 17 10707 59844 10707
# 18 6990 45149 6990
# 19 13397 15730 13397
# 20 37459 58180 37459
# 21 37564 58743 37564
# 22 25681 52558 25681
# 23 47999 37280 47999
# 24 42298 761 42298
# 25 54188 6791 54188
# 26 9513 33046 9513
# 27 1315 8564 1315
# 28 1717 6482 1717
# 29 13586 12673 13586
# 30 10575 63056 10575
# 31 7038 45485 7038
# 32 10567 63160 10567
# Break at D:/16bitcpu/test.v line 132
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -