-
Notifications
You must be signed in to change notification settings - Fork 0
/
head.h
35 lines (34 loc) · 1.37 KB
/
head.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SimulationFatBut
class Interface
{
Bool REQ,ACK,DATA,CLK,CHOKE;
//Pin Definition
Bit Receive_Register[sizeof(packet)];
// Register Definition
Bit Send_Register[sizeof(packet)];
Bit Receive_Buffer[sizeof(packet),n];
//Buffer Definition
Bit Send_Buffer[sizeof(packet),n];
Bool Busy_Bit, Recieve_Bit, Transfer_Bit;
// Status Bits
Interface Routing_Algorithm(packet);
// Routing Algorithm
void Control_Logic();
// Control Logic
void Buffer_Operations();
// Circular Buffer Operations
}
struct packet
{
char source_address[];
char dest_address[];
char data[]
int start_timer;
int end_timer;
}
~
~
~
~
~
~