AutonomousVehicleControlBeginnersGuide
자율주행 차량 제어 알고리즘 샘플 코드와 문서로, 초보자가 알고리즘과 소프트웨어 구조를 공부할 수 있는 기술 가이드
TLB/Scope는 인터랙티브 TLB 주소 변환 시뮬레이터로, 설정·변환·실행·검사·분석·비교·학습·검증·보고 기능을 제공한다
TLB/Scope: an interactive TLB address-translation simulator. Nine connected pages: configure, translate, run workloads, inspect, analyse, compare policies, learn, verify and report.
교육JavaScript · CSSGitHub @likithtech2006-pixel온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
Interactive TLB address translation simulator (OS mini project): virtual-to-physical translation, page faults, replacement policies and EAT
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Operating Systems · Module 5 (Memory Management) · Mini Project #45 Simulate virtual-to-physical address translation using a TLB.
Live demo: https://tlb-address-translation-simulator.vercel.app
TLB/Scope is an interactive simulator of a memory-management unit (MMU). Type a virtual address and watch it travel: it is split into a page number and an offset, looked up in the TLB, resolved by a page-table walk on a miss, handled by the OS on a page fault, checked for write permission, and turned into a physical address. The simulator also measures the hit ratio and effective access time and compares TLB replacement policies.
| Folder | Contents |
|---|---|
tlb-simulator/ | The interactive web app (HTML, CSS, JavaScript; no build step, no back end) and its 96 engine tests |
python-implementation/ | A command-line Python version of the simulator, with 16 unit tests |
project-report/ | Project report (PDF and Word) and presentation (PowerPoint) |
case-study/ | Case study (PDF and Word) |
versions/ | Snapshots of version 1 (single page) and version 2 (multi-page), with screenshots |
backup-original/ | The first prototype |
Web app
python3 -m http.server 5173 --directory tlb-simulator
Then open http://localhost:5173. You can also open tlb-simulator/index.html directly in a browser.
Python version
cd python-implementation
python3 tlb_sim.py # built-in demo
python3 tlb_sim.py --trace "300 300 0x1A2B 300:W" # your own addresses
python3 tlb_sim.py --compare "1 2 3 4 1 2 5 1 2 3 4 5"
python3 -m unittest -v test_tlb_sim # 16 tests
JavaScript tests
cd tlb-simulator
npm test # 96 engine tests
Default machine: 16-bit virtual address, 12-bit physical address, 256-byte pages, 4-entry fully associative LRU TLB, TLB time 10 ns, memory time 100 ns.
| Input | VPN, offset | Output | Physical address | Time |
|---|---|---|---|---|
300 | 1, 44 | TLB miss | 300 | 210 ns |
300 again | 1, 44 | TLB hit | 300 | 110 ns |
0x1A2B | 26, 43 | Page fault | none | — |
On Belady's reference string 1 2 3 4 1 2 5 1 2 3 4 5, FIFO gets 9 misses with 3 TLB entries but 10 misses with 4 (Belady's anomaly), while LRU and OPT never get worse with more entries.
MIT