diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-12-15 01:25:53 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-12-15 01:25:53 +0200 |
| commit | 452cab52de2107c1ce8c7eb0883ff80bb80ac76b (patch) | |
| tree | cf36cb3c289dde79525ff3d9e9d109b7677ce6d0 /include | |
| parent | 1955ad196b76e6fa928af38ca7a7c32106ac44da (diff) | |
| download | gran-452cab52de2107c1ce8c7eb0883ff80bb80ac76b.tar.gz gran-452cab52de2107c1ce8c7eb0883ff80bb80ac76b.zip | |
add initial simt rv64 core
Diffstat (limited to 'include')
| -rw-r--r-- | include/gran/cpu/riscv/simt_riscv64.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/gran/cpu/riscv/simt_riscv64.h b/include/gran/cpu/riscv/simt_riscv64.h new file mode 100644 index 0000000..cd4f195 --- /dev/null +++ b/include/gran/cpu/riscv/simt_riscv64.h @@ -0,0 +1,24 @@ +#ifndef GRAN_SIMT_RISCV64_H +#define GRAN_SIMT_RISCV64_H + +#include <stdint.h> +#include <gran/component.h> + +struct simt_riscv64_conf { + uint64_t data_rcv; + uint64_t inst_rcv; + uint64_t start_pc; + uint64_t num_lanes; +}; + +struct component *create_simt_riscv64( + struct simt_riscv64_conf conf, + struct component *imem, + struct component *dmem); + +struct component *simt_riscv64_data_intf(struct component *c); +struct component *simt_riscv64_inst_intf(struct component *c); + +void simt_riscv64_set_reg(struct component *c, size_t lane, size_t reg, uint64_t val); + +#endif /* GRAN_SIMT_RISCV64_H */ |
