蔡忠翰

@jeremytsai

Joined on Sep 5, 2023

  • 蔡語錄 蔡語錄 時間 我都三分鐘就睡著,我不睡午覺的,這是在英國培養的習慣 X <font color = "red">我晚上交代事情給你,早上就可以給我看,這是一個接力的概念</font> X
     Like 2 Bookmark
  • 設備: Raspberry pi 5 OS : $ uname -a Linux pi 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux 參考資料 The Linux Kernel Module Programming Guide 事前作業 Raspberry Pi 5 Pinout image
     Like  Bookmark
  • 印表機驅動安裝 OKI B432dn 官方驅動連結 STEP 1image STEP 2 打開 WSP_020100_1_306990.exe image image
     Like 1 Bookmark
  • contributed by < TSAICHUNGHAN > 第一周測驗題 測驗1 : quicksort 參考 : vax-r 運作原理 鏈結串列結構體: typedef struct __node {
     Like  Bookmark
  • TODO: 〈並行和多執行緒程式設計〉系列講座並紀錄問題和提出改進 〈概念〉 多工處理 循序式程式(sequential program)時間的演變與程式的執行同一方向,在一特定時間,僅有一項工作正在進行。 :::info 若在執行工作期間,該任務發生錯誤,是否就會導致整個程式沒法中止? :::
     Like  Bookmark
  • contributed by < jeremy90307 > :::danger 使用指定格式書寫,注意細節! ::: 閱讀 因為自動飲料機而延畢的那一年 :::danger 留意書名號的使用。 :::
     Like  Bookmark
  • contributed by < jeremy90307 > 閱讀 The Linux Kernel Module Programming Guide 花了些許時間閱讀,把相關問題及重點紀錄在這 ----> The Linux Kernel Module Programming Guide 筆記 解釋 simrupt 程式碼裡頭的 mutex lock 的使用方式,並探討能否改寫為 lock-free 參考 : 2021 年的筆記 kfifo 解釋
     Like  Bookmark
  • 前置設定 Kernel module package sudo apt-get install build-essential kmod 核心中已載入哪些模組 sudo lsmod 模組檔案存在在 /proc/modules sudo /proc/modules
     Like  Bookmark
  • contributed by < TSAICHUNGHAN > Reviewed by jimmy01240397 善用巨集減少重複的程式碼q_insert_head q_insert_tail q_remove_head q_remove_tail q_delete_mid:沒必要使用 NULL,可以直接判斷是否回到 head 即可。
     Like  Bookmark
  • 第三周測驗 2024q1 第 3 週測驗題 測驗 1 : Using bitwise operations to compute square root 先看原程式碼 #include <math.h> int i_sqrt(int N) { int msb = (int) log2(N);
     Like  Bookmark
  • 相關名詞: Sample mean Introduce Our tool does not rely on static analysis but on statistical analysis of execution timing measurements on the target platform. In this way, we circumvent the problem of modeling the underlying hardware. 實做方法 : TIMING LEAKAGE DETECTION 對執行時間進行洩漏檢測。測量兩個輸入資料的執行時間 (execution time) ,然後檢查兩者時間分佈在統計上是否有不同 (statistically different)。 Step 1: Measure execution time
     Like  Bookmark
  • I added waveform analysis for J-type and S-type in Homework 3. Extend Homework3 to 3-stage pipeline processor contributed by < jeremy90307 > The code for the Three-Stage processor is ca2023-lab3_3-Stage, and the reference source is YatCPU_Lab. Interrupt Introduction Before constructing the Three-Stage CPU, it is essential to understand the concept of interrupts. Without interrupts, a program will only run according to the pre-defined instructions without the ability to interrupt midway. However, a practical CPU must always be ready to handle external events, allowing it to promptly process interrupts.
     Like  Bookmark
  • contributed by < jeremy90307 > Environment setup OS:ubuntu 22.04 sbt versopn:1.9.4 JDK version:1.8.0 Follow the instructions in Lab3: Construct a single-cycle RISC-V CPU with Chisel to set up the environment. GTKWave Installation Install
     Like 1 Bookmark
  • Contributed by <jeremy90307> Prepare GNU Toolchain for RISC-V Lab2: RISC-V RV32I[MA] emulator with ELF support Question Selection Question I chose the question by student KuanYuan053: "Implement quantization from bfloat16 to int8" :::spoiler C code Since student KuanYuan053 has already optimized the C code significantly, I won't waste time modifying it. I'll proceed directly to the RISC-V part.
     Like  Bookmark
  • Topic : Convert FP32 to BF16 and Count the Number of Ones in the Binary Representation test data Single-precision (FP32) bloat16 as HEX literals bfloat16 as binary literals 1.200000 0x3f99999a 00111111100110011001100110011010
     Like  Bookmark