original contributed by : <adam-maj>、<ashaltu>、<eltociear>、<xianbaoqian>
extended contributed by: <Beethovenjoker> (章元豪)
Jserv Note
Next Step
[ ] Explore the behavior the tiny-gpu.
[ ] Optimize control flow and use of registers to improve cycle time.
GPU Architecture
GPU
Beethovenjoker changed 3 months agoView mode Like Bookmark
contributed by: <Beethovenjoker> (章元豪) Github
Warning
:::info
I use ChatGPT 4.0 to enhance the expressiveness of my English and to add clear, insightful comments to my code.
:::
Part A : Mathematical Functions
Task 0: Multiply
Extract their signsfirst.
Beethovenjoker changed 4 months agoView mode Like Bookmark
contributed by: <Beethovenjoker> (章元豪) Github
Development Objectives of this Project
Implementation in Chisel.
RV32I instruction set support.
Execution of programs compiled from the C programming language.
Successful completion of RISC-V Architectural Tests, also known as riscv-arch-test.
Prerequisites
Please refer to Lab3: Construct a RISC-V CPU with Chisel by Professor Ching-Chun Huang.
Beethovenjoker changed 4 months agoView mode Like Bookmark
contributed by: <Beethovenjoker> (章元豪) Github
Quiz1: Problem C
1. fabsf:
The function fabsf(), which quickly calculates the absolute value of a float, operates by manipulating the binary representation of the floating-point number rather than using traditional conditional checks.
C code for fabsf
static inline float fabsf(float x) {
uint32_t i = *(uint32_t *)&x; // Read the bits of the float into an integer
i &= 0x7FFFFFFF; // Clear the sign bit to get the absolute value
Beethovenjoker changed 4 months agoView mode Like Bookmark