mirror of
https://github.com/wfjm/w11.git
synced 2026-04-18 18:07:21 +00:00
Some minor updates
- rtl/vlib/rlink/tbcore/rlink_cext_dpi.c: add function prototypes - rtl/sys_gen/tst_rlink/cmoda7/tb: add missing ssim vbom - tools/bin - ti_w11: update --help text, add -ar,-n4d,-bn4d - tmuconv: add DEUNA defs
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/perl -w
|
||||
# $Id: ti_w11 1172 2019-06-29 07:27:24Z mueller $
|
||||
# $Id: ti_w11 1248 2022-07-07 06:25:50Z mueller $
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Copyright 2013-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
# Copyright 2013-2022 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
#
|
||||
# Revision History:
|
||||
# Date Rev Version Comment
|
||||
# 2022-07-06 1248 1.4.5 update --help text, add -ar,-n4d,-bn4d
|
||||
# 2019-04-19 1133 1.4.4 for -e use .end start address when available
|
||||
# 2019-01-04 1103 1.4.3 add -ar,-n4d (ddr versions)
|
||||
# 2017-06-25 916 1.4.2 add -c7 (cmoda7 support)
|
||||
@@ -368,10 +369,13 @@ sub print_usage {
|
||||
print "usage: ti_w11 <setup options> <ti_rri opts and cmds>...\n";
|
||||
print " setup options for ghdl simulation runs:\n";
|
||||
print " -c7 start tb_w11a_c7 simulation (default: -fx)\n";
|
||||
print " -ar start tb_w11a_arty simulation (default: -fx)\n";
|
||||
print " -bar start tb_w11a_br_arty simulation (default: -fx)\n";
|
||||
print " -n4d start tb_w11a_n4d simulation (default: -fx)\n";
|
||||
print " -bn4d start tb_w11a_br_n4d simulation (default: -fx)\n";
|
||||
print " -b3 start tb_w11a_b3 simulation (default: -fx)\n";
|
||||
print " -n4 start tb_w11a_n4 simulation\n";
|
||||
print " -bn4 start tb_w11a_br_n4 simulation\n";
|
||||
print " -bar start tb_w11a_br_arty simulation (default: -fx)\n";
|
||||
print " -n3 start tb_w11a_n3 simulation (default: -fc)\n";
|
||||
print " -n2 start tb_w11a_n2 simulation (default: -fc)\n";
|
||||
print " -s3 start tb_w11a_s3 simulation (default: -f2)\n";
|
||||
@@ -400,6 +404,6 @@ sub print_usage {
|
||||
print " file type '.mac': on the fly compile with asm-11\n";
|
||||
print " any other file type: assume lda format\n";
|
||||
print "\n";
|
||||
print " either one of -s3,-n2,-n3,-b3,-n4,-bn4 must be given -> sim run\n";
|
||||
print " or one of -t or -u must be given -> fpga run\n";
|
||||
print " either one of -c7,-ar,-arb, ... ,-n2,-s3 must be given -> sim run\n";
|
||||
print " or one of -t or -u must be given -> fpga run\n";
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/perl -w
|
||||
# $Id: tmuconv 1189 2019-07-13 16:41:07Z mueller $
|
||||
# $Id: tmuconv 1248 2022-07-07 06:25:50Z mueller $
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Copyright 2008-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
# Copyright 2008-2022 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
#
|
||||
# Revision History:
|
||||
# Date Rev Version Comment
|
||||
# 2022-07-06 1246 1.1.5 add DEUNA defs
|
||||
# 2019-07-13 1189 1.1.4 drop superfluous exists for $opts
|
||||
# 2018-12-18 1089 1.1.3 add and use bailout
|
||||
# 2018-10-05 1053 1.1.2 use 'ca.*' instead of 'sy.*' fields
|
||||
@@ -350,6 +351,10 @@ my %pdp11_regs = ( # use simh naming convention
|
||||
176502=> "tib.bu",
|
||||
176504=> "tob.cs",
|
||||
176506=> "tob.bu",
|
||||
174516=> "de.pr3",
|
||||
174514=> "de.pr2",
|
||||
174512=> "de.pr1",
|
||||
174510=> "de.pr0",
|
||||
174400=> "rl.cs ",
|
||||
174402=> "rl.ba ",
|
||||
174404=> "rl.da ",
|
||||
@@ -722,6 +727,7 @@ sub do_file {
|
||||
$emtyp_str .= " 074 PC11-PTP" if ($emlast_addr == 0074);
|
||||
$emtyp_str .= " 100 KW11-L" if ($emlast_addr == 0100);
|
||||
$emtyp_str .= " 104 KW11-P" if ($emlast_addr == 0104);
|
||||
$emtyp_str .= " 120 DEUNA" if ($emlast_addr == 0120);
|
||||
$emtyp_str .= " 160 RL11" if ($emlast_addr == 0160);
|
||||
$emtyp_str .= " 200 LP11" if ($emlast_addr == 0200);
|
||||
$emtyp_str .= " 220 RK11" if ($emlast_addr == 0220);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
.\" -*- nroff -*-
|
||||
.\" $Id: tmuconv.1 1237 2022-05-15 07:51:47Z mueller $
|
||||
.\" $Id: tmuconv.1 1248 2022-07-07 06:25:50Z mueller $
|
||||
.\" SPDX-License-Identifier: GPL-3.0-or-later
|
||||
.\" Copyright 2013-2022 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
.\"
|
||||
.\" ------------------------------------------------------------------
|
||||
.
|
||||
.TH TMUCONV 1 2010-10-22 "Retro Project" "Retro Project Manual"
|
||||
.TH TMUCONV 1 2022-07-06 "Retro Project" "Retro Project Manual"
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH NAME
|
||||
tmuconv \- convert w11a tmu output into human readable format
|
||||
@@ -60,6 +60,139 @@ trace ib transactions (ibus cycles)
|
||||
.\" ----------------------------------------------
|
||||
.IP "\fB\-help\fR"
|
||||
print full help text and exit.
|
||||
.
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH TRACE OUTPUT FORMAT
|
||||
Each output line starts with the cycle number and the trace type.
|
||||
The format of the rest of the line depends on trace type.
|
||||
|
||||
\fB\-t_id\fP: the instruction decode trace gives
|
||||
.RS 2
|
||||
.PD 0
|
||||
.IP "-" 2
|
||||
the PC of the instruction
|
||||
.IP "-"
|
||||
the PSW at the beginning(!) of the instruction
|
||||
.IP "-"
|
||||
the instruction word (as loaded into the instruction register)
|
||||
.IP "-"
|
||||
the instruction in MACRO-11 syntax
|
||||
.IP "-"
|
||||
the number of cycles of the previous(!) instruction
|
||||
.PD
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.EX
|
||||
cycle pc psw ireg code nc
|
||||
71587 id 006054 000011 012410 mov (r4)+,(r0) (4)
|
||||
71683 id 002146 000340 116767 movb nnn(pc),nnn(pc) (9)
|
||||
.EE
|
||||
|
||||
\fB\-t_ru\fP: the register update trace gives
|
||||
.RS 2
|
||||
.PD 0
|
||||
.IP "-" 2
|
||||
the byte update indicator
|
||||
.IP "-"
|
||||
the register set (0 pr 1)
|
||||
.IP "-"
|
||||
the register number (0 to 7)
|
||||
.IP "-"
|
||||
the loaded data value
|
||||
.IP "-"
|
||||
in case of a stack pointer update the values of kernel, supervisor and user
|
||||
stack pointers
|
||||
.IP "-"
|
||||
in case of an R0-R5 update the values of all these six registers
|
||||
.IP "-"
|
||||
the symbolic name of the register
|
||||
.PD
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.EX
|
||||
cycle b sr data
|
||||
71578 ru 0 07 006102 pc
|
||||
71649 ru 0 06 002000 002000*------ ------ ksp
|
||||
71634 ru 0 04 010752 006110 006112 177776 010752 010752*010642 r04
|
||||
.EE
|
||||
|
||||
\fB\-t_em\fP: the memory transaction trace gives
|
||||
.RS 2
|
||||
.PD 0
|
||||
.IP "-" 2
|
||||
the r/w flag
|
||||
.IP "-"
|
||||
the byte enables
|
||||
.IP "-"
|
||||
the memory address (as 22bit number)
|
||||
.IP "-"
|
||||
the data written to memory
|
||||
.IP "-"
|
||||
the data received from memory
|
||||
.IP "-"
|
||||
four flag bits 'crwh' indicating cancel, read, write, and cache-hit
|
||||
.IP "-"
|
||||
the number of extra wait cycles
|
||||
.IP "-"
|
||||
in case of vector fetches and associated stack pushes some descriptive text
|
||||
.PD
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.EX
|
||||
cycle be addr wdat rdat crwh nc
|
||||
11374 em w 11 00000004 000006 0010 (1)
|
||||
52574 em r 11 00002164 177624 0101 (1)
|
||||
|
||||
52530 em r 11 00000020 002142 0101 (1)
|
||||
52532 em r 11 00000022 000340 0101 (1) VFETCH 020 IOT
|
||||
52536 em w 11 00001776 000017 0010 (1)
|
||||
52538 em w 11 00001774 004316 0010 (1) SPUSH
|
||||
.EE
|
||||
|
||||
\fB\-t_ib\fP: the ibus transaction trace gives
|
||||
.RS 2
|
||||
.PD 0
|
||||
.IP "-" 2
|
||||
two flag bits 'cr' indicating console and remote access
|
||||
.IP "-"
|
||||
two flag bits 'rm' indicating read/write and modify
|
||||
.IP "-"
|
||||
the byte enables
|
||||
.IP "-"
|
||||
the bus address (as 16bit number)
|
||||
.IP "-"
|
||||
the data written to bus
|
||||
.IP "-"
|
||||
the data received from bus
|
||||
.IP "-"
|
||||
the acknowledge flag
|
||||
.IP "-"
|
||||
the number of extra wait cycles
|
||||
.IP "-"
|
||||
if known, the symbolic name of the register
|
||||
.PD
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.EX
|
||||
cycle cr rmbe addr wdat rdat a nc name
|
||||
988 ib cr r 11 177500 000000 1 (0) ii.acr
|
||||
52583 ib -- w 11 177570 000001 1 (0) sdreg
|
||||
70729 ib -- r 11 177776 000004 1 (0) psw
|
||||
.EE
|
||||
|
||||
The w11 CPU starts a cache cycle for each read or write, and cancels the
|
||||
cache request when an ibus access is detected. That's why an 'ib' line
|
||||
is usually preceded by an 'em' line with the 'cancel' flag, like
|
||||
|
||||
.EX
|
||||
52582 em w 11 00177570 000001 cancel 1000 (1)
|
||||
52583 ib -- w 11 177570 000001 1 (0) sdreg
|
||||
.EE
|
||||
|
||||
.
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH EXAMPLES
|
||||
|
||||
Reference in New Issue
Block a user