das wurde geübt

nächster teil. es ging um die zufallszahlen in der $y$-Reihe. in der Senkrechten.
bisher habe ich das wuerde sich von der wahrscheinlichkeit eines zufallsexperiments, genau gleich verhalten, wobei hier kommen vielleicht besonderheiten der Zufallszahlen zustande.

so: ich habe jede 0 und $1$ in der senkrechten $y$ einzeln zufällig erzeugt.

trotzdem kann man ja 16 Bit werte nehmen, worte. so, das kann man erzeugen, und als $y$ nehmen.

wenn wir das haben, dann: haben wir die senkrechte als wert. aber, auch wir können vielleicht matrizen,
als: mit der Waagerechten und Senkrechten machen, aber verschiedene.
ok: deswegen lohnt sich umrechnung, hier auch die codes.

trotzdem bevorzuge ich: jetzt erst quine mc cluskey standard übung zu machen, dann auch
abel ... galasm
und dann geht es drum speicherbausteine usw. zu machen. so jetzt weiter. trotzdem erst diese zufallszahlen und das ganze ding.

(C) David Vajda
Sun Aug 30 19:25:20 2026
4 Network - TTL - Disjunktive Normalform

  1 0 0 0 1    1
  3 0 0 1 1    1
  7 0 1 1 1    1
  8 1 0 0 0    1
  9 1 0 0 1    1
10 1 0 1 0    1
11 1 0 1 1    1
12 1 1 0 0    1
13 1 1 0 1    1

Gruppe 1:
  1 0 0 0 1    1
  8 1 0 0 0    1
Gruppe 2:
  3 0 0 1 1    1
  9 1 0 0 1    1
10 1 0 1 0    1
12 1 1 0 0    1
Gruppe 3:
  7 0 1 1 1    1
11 1 0 1 1    1
13 1 1 0 1    1

1:3		0	0	-	1
1:8		-	0	0	1
8:9		1	0	0	-
8:10		1	0	-	0
8:12		1	-	0	0

3:7		0	-	1	1
3:11		-	0	1	1
9:11		1	0	-	1
9:13		1	-	0	1
10:11	1	0	1	-
12:13	1	1	0	-

1:3		0	0	x	1
1:8		x	0	0	1
8:9		1	0	0	x
8:10		1	0	x	0
8:12		1	x	0	0

3:7		0	x	1	1
3:11		x	0	1	1
9:11		1	0	x	1
9:13		1	x	0	1
10:11	1	0	1	x
12:13	1	1	0	x



1:8		x	0	0	1
3:11		x	0	1	1
8:12		1	x	0	0
3:7		0	x	1	1
9:13		1	x	0	1
9:11		1	0	x	1
8:10		1	0	x	0
1:3		0	0	x	1
10:11	1	0	1	x
12:13	1	1	0	x
8:9		1	0	0	x



1:8		x	0	0	1
3:11		x	0	1	1

8:12		1	x	0	0
3:7		0	x	1	1
9:13		1	x	0	1

9:11		1	0	x	1
8:10		1	0	x	0
1:3		0	0	x	1

10:7		1	0	1	x
12:13	1	1	0	x
8:9		1	0	0	x



1:8		x	0	0	1
3:11		x	0	1	1
1:8:3:11		x	0	x	1

Gruppe 1:
8:12		1	x	0	0
Gruppe 2:
9:13		1	x	0	1
3:7		0	x	1	1

8:12			1	x	1	1
8:12:9:13		1	x	0	x


9:11		1	0	x	1
8:10		1	0	x	0
1:3		0	0	x	1

9:11:8:10		1	0	x	x
9:13:1:3		-	0	x	1

8:9		1	0	0	x
10:7		1	0	1	x
12:13	1	1	0	x

8:9:10:7		1	0	x	x
8:9:12:13		1	x	0	x




1:8:3:11		x	0	x	1
8:12			1	x	1	1
8:12:9:13		1	x	0	x
9:11:8:10		1	0	x	x
9:13:1:3		x	0	x	1
8:9:10:7		1	0	x	x
8:9:12:13		1	x	0	x
zwischenübung: minix

kernel, mm, fs, (h)

./kernel/proc.c
./kernel/main.c
./kernel/mpx88.s
./kernel/klib88.s
./kernel/memory.c
./kernel/stty.c 
./kernel/floppy.c
./kernel/clock.c
./kernel/disk ?? wini...c 


./h/glo.h
./h/const.h
./h/type.h

.. (proc.??nein)

ok: 

virtual 
physisch/physical/physikalisch 

clicks 
bytes 

vir 
phys 
clicks 
bytes 

vir, phys, clicks, bytes 

map 
vir 
phys 
len 

vir phys len

mem_map 
mem_vir
mem_phys
mem_len

struct mem_map {
	vir_clicks mem_vir;
	phys_clicks mem_phys;
	vir_clicks mem_len;
};

NR_REGS 
NR_SEGS 

11 REGS: ax bx dx cx sp bp si di cs ds ss 

T: Text (Code): cs 
D: Data: ds 
S: Stack: ss 

PIC 8259A: Programmable Interrupt Controller 8259A

Port: 0x20, 0x21, 0xA0, 0xA1 (0xa0, 0xa1): 

0x20: Port 
0x21: Mask 
0xA0: Port 
0xA1: Mask 

X: Gift: 13: alt: wg. untere Nummer 
X passt zu 13
XT: alter IBM PC XT 

AT: neuer 
AT: advanced...

#define XT_WINI_INT ?? 13
CLOCK: 8
KEYBOARD: 9

SYS_INT, ja 

XT_WINI_INT 
KEYBOARD_INT 
CLOCK_INT 
TTY_INT??
FLOPPY_INT...

trap divide interrupt 

divide: abbildung auf den 0 vektor, eintrag in der interrupt vektortabelle, mit index 0 in der tabelle 
trap: alle interrupts > 15, bedeutet: alle: die nicht am PIC 8259A sind 
interrupt <= 15

suprise, trap, divide: 
suprise: interrupt nicht erwartet

ok: botschaften:

sys_call: die einzigen system_calls die ausgetauscht werden sind:
SENDEN und EMPFANGEN, nachher in der 
./kernel/proc.c?? nachher nachdenken

ok: 
mini_send und mini_rec (interrupt und: sys_call)

in der 
kernel.h?? oder proc.h <- zweiteres ist die 

proc structure:

struct proc {

} procs [NR_TASKS+NR_PROCS];


darein kommt: 

int p_regs [NR_REGS];
extern struct mem_map p_map [NR_SEGS];

usertime und systime 
realtime time clocks ticks 

jedenfalls: 
usertime, system time vom prozess 
vom aufgerufenen kind 

stack pointer, anfang, grenze
int pid 

process id;

..

also:

extern struct proc {
	extern int p_regs [NR_REGS];
	extern struct mem_map [NR_SEGS];
	int pid;
	// stackpointer, times...
} procs [NR_TASKS+NR_PROCS];

gut:
./kernel/main.c

grosse routine: main:
MM, FS, INIT

Der Kernel selber wird durch INIT eher repraesentiert, was weitere prozesse startet 

TASKS: Betriebssystem
PROCS: User

schleife: 

und: einsprungsaddressen: 

keyboard_int, clock_int, floppy_int, disk_int 
sys_call divide trap ....

erst: in der schleife die segmente: 
T, D, S: anfang und laenge 
und weitere...

dann interrupts initialisieren 

set_vec (

set_vec (keyboard_int, ...)

ok: 

mpx88.s:
klib88.s

mpx88.s

MINIX: 
TTY_INT: 
CLOCK_INT: 
...

klib88.s:
hilfsroutinen: 

dma_read 
dma_write 
lock
unlock 
getchrome 
video buffer copy...

proc.c:
mini_rec, mini_send, sys_call, interrupt 

bei dem einen, werden processe gleich mit aufgebaut
bei dem anderen, nur die botschaften gesendet

diese sind caller, empfaenger und botschaft 

dann kommen:
ready, unready, schedule...

ok... ich lerne heute mal auswendig, dann lerne ich das
spaeter weiter...
egal, wie vollstaendig, noch der ARM Cortex 

ARM: Advanced Risc Machine 

Advanced Risc Machine ldt. 

ldt.: gmbh:

Linien:
A: Operating System, ... mit allem 
R: Embedded System
M: Microcontroller

ARM Cortex-M7
ARM Cortex-A7
ARM Cortex-R7

ok: Dann Versionen: 

zunaechst: ARM7TDMI ... what ever:

ARM: Architecture Application Level Reference Manual
TRM: technical Reference Manual

ARM, ARM, ARM 

ISA: Immer: Instruction Set Architecture

ARM: Advanced Risc Machine 
ARM: Architecture Application Level Reference Manual 
ARM: Operating System, Embbeded, Microcontroller

Das sind Profiles 

ok: Waynes?

ok: 
Apple Computer, Arcorn und: VLSI Technology

VLSI: Very Large Scale Integration 

VUSE: Very Ultra Super Extra 

Small Medium Large

Memory Modell: x86: Tiny, Small, Medium, Compact, Large, Huge, Flat ...

Frequency: Low, Medium, High Frequency
Very High, Ultra High, Super High, Extra High 

Very Large, Ultra Large...

ok: Very Large Scal Intergration Technology 

Apple Computer, Arcorn und: VLSI Technology: ARM 

STMicroelectronics: Atmel (heute)

dazu: PHILLIPS (PX...?)
OKI, ...

ARM Cortex-M7
ok: v4, v5, v6, v7

Thumb: daumen 

bei dem prozessor:
Thumb-2: Erweiterter Befehlssatz: 32 Bit 
Thumb-Instructions: 16 Bit...

ok: 

Graph:
(auf Gut Deutsch: User und System)

User-Thread, Kernel...
ok: wie rein und raus:... gerade nicht praesent... 

ok: 
16 Register
13 GPR: General Purpose Register 

r13 ... r0
Stack: Main Stack Pointer, Process Stack Pointer 
Link Register: Ruecksprungaddresse 
... noch was...

es gibt befehle, wie 
ADD, ADC, 
B: Branch, BC?? wie carry 

flags sind generell: wie x86
sign, carry, overflow... (aehnlich) 

atmega8 nebenbei gibt es ja noch neben 
SIGN auch NEGATIVE ...
ok:

dann gibt es:
3 Formen der... Interrupts, oder wie:

jedenfalls generell:

NMI: Non Maskable Interrupts 
Siehe: PIC 8259A, 0x21, 0xa1 

Nested Vectored Interrupt 

Verschachtetele Interrupt Routinen, oder der Vektor??

dann gibt es:

ABI: Application Binary Interface
EABI: Enhanced ABI

Advanced Periphal Bus 
Advanced High Perphormance Bus
Advanced 

Port, Bus:

Serial Wire: Seriell (V.24, RS232... z.B.)

JTAG: Joint Test Action Group 

Debug Schnittstelle: JTAG... 

Debug Port 
JTAG Debug Port...




Es gibt mehrere Einheiten:

MMU: Memory Management Unit 
MPU: Memory Protection Unit 
LSU: Load and Store Unit
ALU: Arithmetic and Logic Unit 
Power Management Unit 

Neben, Neumann/harward...:
I/O, CPU und Mem: 

Peripherals, auf dem IC, Debug Interface, what ever...

ok: pause, ich mache aufgaben weiter...

aufgaben:

(C) David Vajda
Sun Aug 30 19:25:20 2026
4 Network - TTL - Disjunktive Normalform

 0 0 0 0 0    0
 1 0 0 0 1    1
 2 0 0 1 0    0
 3 0 0 1 1    1
 4 0 1 0 0    0
 5 0 1 0 1    0
 6 0 1 1 0    0
 7 0 1 1 1    1
 8 1 0 0 0    1
 9 1 0 0 1    1
10 1 0 1 0    1
11 1 0 1 1    1
12 1 1 0 0    1
13 1 1 0 1    1
14 1 1 1 0    0
15 1 1 1 1    0

(C) David Vajda
Sun Aug 30 19:25:20 2026
4 Network - TTL - Disjunktive Normalform

  1	0 0 0 1    1
  3	0 0 1 1    1
  7	0 1 1 1    1
  8	1 0 0 0    1
  9	1 0 0 1    1
10	1 0 1 0    1
11	1 0 1 1    1
12	1 1 0 0    1
13	1 1 0 1    1

Gruppe 1:
  1 0 0 0 1    1
  8 1 0 0 0    1
Gruppe 2:
  3 0 0 1 1    1
  9 1 0 0 1    1
10 1 0 1 0    1
12 1 1 0 0    1
Gruppe 3:
  7 0 1 1 1    1
11 1 0 1 1    1
13 1 1 0 1    1

1:3		0	0	-	1
1:8		-	0	0	1
8:9		1	0	0	-
8:10		1	0	-	0
8:12		1	-	0	0

3:7		0	-	1	1
3:11		-	0	1	1
9:11		1	0	-	1
9:13		1	-	0	1
10:11	1	0	1	-
12:13	1	1	0	-

1:3		0	0	x	1
1:8		x	0	0	1
8:9		1	0	0	x
8:10		1	0	x	0
8:12		1	x	0	0

3:7		0	x	1	1
3:11		x	0	1	1
9:11		1	0	x	1
9:13		1	x	0	1
10:11	1	0	1	x
12:13	1	1	0	x



1:8		x	0	0	1
3:11		x	0	1	1
8:12		1	x	0	0
3:7		0	x	1	1
9:13		1	x	0	1
9:11		1	0	x	1
8:10		1	0	x	0
1:3		0	0	x	1
10:11	1	0	1	x
12:13	1	1	0	x
8:9		1	0	0	x



1:8		x	0	0	1
3:11		x	0	1	1

8:12		1	x	0	0
3:7		0	x	1	1
9:13		1	x	0	1

9:11		1	0	x	1
8:10		1	0	x	0
1:3		0	0	x	1

10:7		1	0	1	x
12:13	1	1	0	x
8:9		1	0	0	x



1:8		x	0	0	1
3:11		x	0	1	1
1:8:3:11		x	0	x	1

Gruppe 1:
8:12		1	x	0	0
Gruppe 2:
9:13		1	x	0	1
3:7		0	x	1	1

8:12			1	x	1	1
8:12:9:13		1	x	0	x


9:11		1	0	x	1
8:10		1	0	x	0
1:3		0	0	x	1

9:11:8:10		1	0	x	x
9:13:1:3		-	0	x	1

8:9		1	0	0	x
10:7		1	0	1	x
12:13	1	1	0	x

8:9:10:7		1	0	x	x
8:9:12:13		1	x	0	x




1:8:3:11		x	0	x	1 (hier ist was komisch)
8:12			1	x	1	1
8:12:9:13		1	x	0	x
9:11:8:10		1	0	x	x
9:13:1:3		x	0	x	1 (hier ist was komisch), ok, es war eher das:
8:9:10:7		1	0	x	x
8:9:12:13		1	x	0	x

9:13		1	x	0	1, ok, war rechtschreibfehler, gruppe (2 und 1)
9:13 und: 8:12, dann: selber ausdruck


1:8:3:11		x	0	x	1 
8:12			1	x	1	1
8:12:9:13		1	x	0	x
9:11:8:10		1	0	x	x
8:9:10:7		1	0	x	x
8:9:12:13		1	x	0	x


  1	0 0 0 1    1
  3	0 0 1 1    1
  7	0 1 1 1    1
  8	1 0 0 0    1
  9	1 0 0 1    1
10	1 0 1 0    1
11	1 0 1 1    1
12	1 1 0 0    1
13	1 1 0 1    1

			1	3	7	8	9	10	11	12	13
1:8:3:11		1	1		1			1
8:12						1				1
8:12:9:13					1	1			1	1
9:11:8:10					1	1	1	1
8:9:10:7				1	1	1	1
8:9:12:13					1	1			1	1

ok, damit sind so oder so alle terme bedient und primimplikantentafel:


			1	3	7	8	9	10	11	12	13
1:8:3:11		1	1		1			1				p
8:12						1				1
8:12:9:13					1	1			1	1
9:11:8:10					1	1	1	1
8:9:10:7				1	1	1	1					p
8:9:12:13					1	1			1	1


			1	3	7	8	9	10	11	12	13
1:8:3:11		1	1		1			1				p
8:9:10:7				1	1	1	1					p
8:9:12:13					1	1			1	1

ok:


1:8:3:11		x	0	x	1 
8:9:10:7		1	0	x	x
8:9:12:13		1	x	0	x

	y	=	not x2 and not x0 or
			x3 and not x2 or
			x3 and not x1;
			
			
in galasm aus zu druecken, uebung:


device description module 
device description module 
device description module 
device description module 

GAL16V8
Module GAL16v808302026

... pins - gleich uebung 

y	=	/x2 * /x0 
		x3 * /x2 
		x3 * /x1

Descriptions

oder vergessen...

ok: pins realitaet:

VCC, GND, /OE, CLK

Auf der einen Seite Input
Auf der anderen Seite Output 

Im Westen: Input
Im Osten: Output 

GND: Sued-West, wie immer
VCC: Pin 20: Nord-Ost 

GND: Seite: Input 
VCC Seite Output 

CLK: ist auf Seite: Input 
/OE: auf Seite Output 

als

CLK X3 X2 X1 X0 NC NC NC NC GND 
/OE Y NC NC NC NC NC NC NC VCC

so zum beispiel und ich glaube das ist richtig...  


GAL16V8
Module GAL16v808302026

CLK X3 X2 X1 X0 NC NC NC NC GND 
/OE Y NC NC NC NC NC NC NC VCC

y	=	/x2 * /x0 
		x3 * /x2 
		x3 * /x1

Description

kann sein # ist oder oder so:

GAL16V8
Module GAL16v808302026

CLK X3 X2 X1 X0 NC NC NC NC GND 
/OE Y NC NC NC NC NC NC NC VCC

y	=	/x2 * /x0 # x3 * /x2 # x3 * /x1

Description

ok, wenn wir das haben, geht es weiter...

wir testen zunaechst mit eigenen mitteln, ist der ausdruck richtig, wir machen die tabelle in latex und wir machen 
auch ein timing diagramm.

$n$ $x_3$ $x_2$ $x_1$ $x_0$ $y$
0 0 0 0 0 0
$1$ 0 0 0 $1$ $1$
$2$ 0 0 $1$ 0 0
$3$ 0 0 $1$ $1$ $1$
$4$ 0 $1$ 0 0 0
$5$ 0 $1$ 0 $1$ 0
$6$ 0 $1$ $1$ 0 0
$7$ 0 $1$ $1$ $1$ $1$
$8$ $1$ 0 0 0 $1$
$9$ $1$ 0 0 $1$ $1$
$10$ $1$ 0 $1$ 0 $1$
$11$ $1$ 0 $1$ $1$ $1$
$12$ $1$ $1$ 0 0 $1$
$13$ $1$ $1$ 0 $1$ $1$
$14$ $1$ $1$ $1$ 0 0
$15$ $1$ $1$ $1$ $1$ 0

so,

	y	=	not x2 and not x0 or
			x3 and not x2 or
			x3 and not x1;
			
testen auf not x2 and not x0...

  0	0 0 0 0	0
  1	0 0 0 1	1
  2	0 0 1 0	0
  3	0 0 1 1	1
  4	0 1 0 0	0
  5	0 1 0 1	0
  6	0 1 1 0	0
  7	0 1 1 1	1
  8	1 0 0 0	1
  9	1 0 0 1	1
10	1 0 1 0	1
11	1 0 1 1	1
12	1 1 0 0	1
13	1 1 0 1	1
14	1 1 1 0	1
15	1 1 1 1 	1

ok:

not x2 and not x0

  0	0 0 0 0	0	1	1	1
  1	0 0 0 1	1	1	
  2	0 0 1 0	0	1	1	1
  3	0 0 1 1	1	1
  4	0 1 0 0	0		1
  5	0 1 0 1	0	
  6	0 1 1 0	0		1
  7	0 1 1 1	1
  8	1 0 0 0	1	1	1	1
  9	1 0 0 1	1	1
10	1 0 1 0	1	1	1	1
11	1 0 1 1	1	1
12	1 1 0 0	1		1
13	1 1 0 1	1	
14	1 1 1 0	1		1
15	1 1 1 1 	1


  0	0 0 0 0	0	1	1	1
  2	0 0 1 0	0	1	1	1
  8	1 0 0 0	1	1	1	1
10	1 0 1 0	1	1	1	1

x3 and not x2 or

  0	0 0 0 0	0		1
  1	0 0 0 1	1		1
  2	0 0 1 0	0		1
  3	0 0 1 1	1		1
  4	0 1 0 0	0		
  5	0 1 0 1	0		
  6	0 1 1 0	0
  7	0 1 1 1	1	
  8	1 0 0 0	1	1	1	
  9	1 0 0 1	1	1	1
10	1 0 1 0	1	1	1
11	1 0 1 1	1	1	1
12	1 1 0 0	1	1	
13	1 1 0 1	1	1	
14	1 1 1 0	1	1
15	1 1 1 1 	1	1


  0	0 0 0 0	0		1
  1	0 0 0 1	1		1
  2	0 0 1 0	0		1
  3	0 0 1 1	1		1
  4	0 1 0 0	0		
  5	0 1 0 1	0		
  6	0 1 1 0	0
  7	0 1 1 1	1	
  8	1 0 0 0	1	1	1	
  9	1 0 0 1	1	1	1
10	1 0 1 0	1	1	1
11	1 0 1 1	1	1	1
12	1 1 0 0	1	1	
13	1 1 0 1	1	1	
14	1 1 1 0	1	1
15	1 1 1 1 	1	1


x3 and not x1:

  8	1 0 0 0	1	1	1
  9	1 0 0 1	1	1	1
12	1 1 0 0	1	1	1
13	1 1 0 1	1	1	1