another Garry's Mod project
Would you like to react to this message? Create an account in a few clicks or log in to continue.
another Garry's Mod project

A forum for Garry's Mod projects


You are not connected. Please login or register

Overview of OS & Hardware Communication

Go down  Message [Page 1 of 1]

1Overview of OS & Hardware Communication Empty Overview of OS & Hardware Communication Mon Aug 17, 2009 3:45 pm

Sander

Sander
Admin

CPU
Inputs:
Clk->BootE2 .Clk
Reset->BootE2 .Reset
MemBus->Address Bus 1
IOBus->Data Port 1
Frequency->BootE2 .Frequency

CPU instruction set:
11: Load (Loads HDD data to RAM, needs In 3, 4)
12: Store (Stores RAM data to HDD, needs In 3, 4)
21: Index (Makes an index of 3 values per file on HDD to RAM for fast file management)
22: System Index (Makes an index of 3 values per file on System reserved space to RAM)
Data Structure:
..TAddS..
31: Delete (Deletes file found in address range)
32: FDelete (Deletes data between address range)
41: Single Write (Writes a value to an address)
42: Single Delete (Deletes the value of an address)

Dataport 1:
In
1. Clk
2. Instruction
3. Address start
4. Address end

Out
1. Busy Instruction no.


GPU
Inputs:
MemBus->Address Bus 3
IOBus->Data Port 2
Clk->BootE2 .Clk

Reserved Internal Memory
Outs:
2001-CPU instruction Clk
2002-CPU instruction
2003-CPU start address
2004-CPU end address
4000-Begin RAM
Ins:
3001-Bios Selection
3002-Bios value
3003...
3004...
3101-Keyboard char
3006...
3007...
3008...

Data Port 2:
In
1. Boot State
2. CPU busy
3. CPU progress

Out
1. CPUClk-CPU instruction Clk#2001
2. Ins-CPU instruction#2002
3. Add1-CPU start address#2003
4. Add2-CPU end address#2004

HDD
Type:
Flash Memory (EEPROM)
HDD disk 1:
EEPROM drive 0
128kB (131072 values)
HDD disk 2:
EEPROM drive 1
128kB (131072 values)

Total size of 256kB (262144 values)
first 2048 values reserved for system settings
0001 - CPU Frequency
0011 - System Color - Red
0012 - System Color - Green
0013 - System Color - Blue
0021 - Bios Font
0022 - Bios Selection Color - Red
0023 - Bios Selection Color - Green
0024 - Bios Selection Color - Blue




Address Bus Setup
Address Bus 1:
Address Space 1 Offset: 0
Address Space 1 Size: 262144
Address Space 2 Offset: 262144
Address Space 2 Size: 262144
In.Memory 1: RAM
In.Memory 2: Address Bus 2

Address Bus 2:
Address Space 1 Offset: 0
Address Space 1 Size: 131072
Address Space 2 Offset: 131072
Address Space 2 Size: 131072
In.Memory 1: HDD 1
In.Memory 2: HDD 2

Address Bus 3:
Address Space 1 Offset: 0
Address Space 1 Size: 256
Address Space 2 Offset: 256
Address Space 2 Size: 262144
In.Memory 1: Wired Keyboard
In.Memory 2: RAM


RAM and File Structure
RAM Memory:
Size: 256kB (262144 values)
first 2048 values are reserved for system settings.

File Structure
TSWHCCCCCCCC..xS
The first 12 values are reserved for file properties.
A file is found by its File Type number
T = File Type
S = Size (Total size, Int)
W = Width (0 when not a picture)
H = Height (0 when not a picture)
C = Filename ASCII (max length is 8 )
..= Data (here begins the data address)

File Types
1001 = Data Array (normal array with numbers)
1002 = Text (Array of ASCII codes)
1003 = Picture (Size = Width * Height)
1004 = Sound (value = pitch)


Bootstrap
Inputs
On->Button
Outputs
HClk-All hardware Clk
Reset-Hardware Reset
Frequency-CPU Frequency
BootState-State of Booting process
CPUClk-CPU instruction Clk
Ins-CPU instruction
Add1-CPU start address
Add2-CPU end address
Boot States
-1= BIOS (entered by holding the powerbutton for 3 secs)
0 = Computer is Off
1 = Computer is On, Step 1, setting Clk and Frequency
2 = Step 2, setting the instruction
3 = Step 3, getting confirmation from the CPU
4 = Step 4, ready.

The Bootstrap loads the system settings in the RAM memory and manages the clock and reset functions in all hardware.


Functions

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum