MicroGPU 1.0
Simple functional model of a GPU for educational purposes
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations
thread.hh File Reference
#include <iostream>
#include <string>
#include <vector>
#include <cassert>
#include <array>
Include dependency graph for thread.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Thread
 Represents a GPU threadThe Thread class encapsulates the state and behavior of a GPU thread, including its ID, execution state, and register file. Each thread can be active or inactive, and it has a set of registers that can be read from and written to during instruction execution. More...
 

Macros

#define THREAD_REGISTER_COUNT   64
 Define the number of registers available to each thread.
 

Typedefs

using RegisterFile = std::array< int, THREAD_REGISTER_COUNT >
 

Enumerations

enum  ThreadState { ACTIVE , INACTIVE }
 

Macro Definition Documentation

◆ THREAD_REGISTER_COUNT

#define THREAD_REGISTER_COUNT   64

Define the number of registers available to each thread.

Typedef Documentation

◆ RegisterFile

using RegisterFile = std::array<int, THREAD_REGISTER_COUNT>

Enumeration Type Documentation

◆ ThreadState

Enumerator
ACTIVE 
INACTIVE