没有合适的资源?快使用搜索试试~ 我知道了~
vic-u7-manual-with-creativecommons.pdf
需积分: 5 0 下载量 53 浏览量
2024-01-19
09:57:02
上传
评论
收藏 632KB PDF 举报
温馨提示
试读
62页
vic_u7_manual_with_creativecommons.pdf
资源推荐
资源详情
资源评论
SiFive Vic_U7_Core Manual
© SiFive, Inc.
SiFive Vic_U7_Core Manual
Proprietary Notice
Copyright © 2019, SiFive Inc. All rights reserved.
Vic_U7_Core Manual by SiFive, Inc. is licensed under Attribution-NonCommercial-NoDeriva-
tives 4.0 International. To view a copy of this license, visit: http://creativecommons.org/licenses/
by-nc-nd/4.0
Information in this document is provided "as is," with all faults.
SiFive expressly disclaims all warranties, representations, and conditions of any kind, whether
express or implied, including, but not limited to, the implied warranties or conditions of mer-
chantability, fitness for a particular purpose and non-infringement.
SiFive does not assume any liability rising out of the application or use of any product or circuit,
and specifically disclaims any and all liability, including without limitation indirect, incidental, spe-
cial, exemplary, or consequential damages.
SiFive reserves the right to make changes without further notice to any products herein.
Contents
1 Introduction ..............................................................................................................5
1.1 Vic_U7_Core Overview ...............................................................................................5
1.2 Debug Support ...........................................................................................................6
1.3 Memory System..........................................................................................................6
1.4 Interrupts ...................................................................................................................7
2 List of Abbreviations and Terms ...................................................................8
3 U7 RISC-V Core.....................................................................................................10
3.1 Instruction Memory System........................................................................................10
3.2 Instruction-Fetch Unit ................................................................................................10
3.3 Execution Pipeline ....................................................................................................11
3.4 Data Memory System................................................................................................12
3.5 Floating-Point Unit (FPU)...........................................................................................12
3.6 Supported Modes .....................................................................................................13
3.7 Physical Memory Protection (PMP).............................................................................13
3.7.1 Functional Description ......................................................................................13
3.7.2 Region Locking ................................................................................................13
3.8 Hardware Performance Monitor..................................................................................14
4 Memory Map ...........................................................................................................16
5 Interrupts.................................................................................................................. 17
5.1 Interrupt Concepts ....................................................................................................17
5.2 Interrupt Operation....................................................................................................18
5.2.1 Interrupt Entry and Exit .....................................................................................18
5.3 Interrupt Control Status Registers...............................................................................19
5.3.1 Machine Status Register (mstatus) ..................................................................19
5.3.2 Machine Trap Vector (mtvec)............................................................................20
1
5.3.3 Machine Interrupt Enable (mie) .........................................................................21
5.3.4 Machine Interrupt Pending (mip) .......................................................................22
5.3.5 Machine Cause (mcause) .................................................................................22
5.4 Supervisor Mode Interrupts........................................................................................23
5.4.1 Delegation Registers (m*deleg) .......................................................................24
5.4.2 Supervisor Status Register (sstatus)...............................................................25
5.4.3 Supervisor Interrupt Enable Register (sie).........................................................26
5.4.4 Supervisor Interrupt Pending (sip) ....................................................................26
5.4.5 Supervisor Cause Register (scause).................................................................27
5.4.6 Supervisor Trap Vector (stvec) ........................................................................28
5.4.7 Delegated Interrupt Handling.............................................................................29
5.5 Interrupt Priorities .....................................................................................................30
5.6 Interrupt Latency.......................................................................................................30
6 Core-Local Interruptor (CLINT).....................................................................31
6.1 CLINT Memory Map..................................................................................................31
6.2 MSIP Registers.........................................................................................................31
6.3 Timer Registers ........................................................................................................32
6.4 Supervisor Mode Delegation ......................................................................................32
7 Level 2 Cache Controller .................................................................................33
7.1 Level 2 Cache Controller Overview.............................................................................33
7.2 Functional Description...............................................................................................33
7.2.1 Way Enable and the L2 Loosely Integrated Memory (L2-LIM) ...............................34
7.2.2 Way Masking and Locking.................................................................................35
7.2.3 L2 Scratchpad..................................................................................................35
7.2.4 Error Correcting Codes (ECC) ...........................................................................36
7.3 Memory Map ............................................................................................................36
7.4 Register Descriptions ................................................................................................37
7.4.1 Cache Configuration Register (Config).............................................................38
7.4.2 Way Enable Register (WayEnable) ...................................................................38
7.4.3 ECC Error Injection Register (ECCInjectError)...............................................38
7.4.4 ECC Directory Fix Address (DirECCFix*).........................................................39
2
7.4.5 ECC Directory Fix Count (DirECCFixCount) ....................................................39
7.4.6 ECC Directory Fail Address (DirECCFail*) ......................................................39
7.4.7 ECC Data Fix Address (DatECCFix*) ...............................................................39
7.4.8 ECC Data Fix Count (DatECCFixCount) ..........................................................39
7.4.9 ECC Data Fail Address (DatECCFail*) ............................................................39
7.4.10 ECC Data Fail Count (DatECCFailCount)......................................................40
7.4.11 Cache Flush Registers (Flush*).....................................................................40
7.4.12 Way Mask Registers (WayMask*) ....................................................................40
8 Platform-Level Interrupt Controller (PLIC) .............................................42
8.1 Memory Map ............................................................................................................42
8.2 Interrupt Sources ......................................................................................................44
8.3 Interrupt Priorities .....................................................................................................44
8.4 Interrupt Pending Bits................................................................................................44
8.5 Interrupt Enables ......................................................................................................45
8.6 Priority Thresholds ....................................................................................................46
8.7 Interrupt Claim Process .............................................................................................46
8.8 Interrupt Completion..................................................................................................47
9 Custom Instructions...........................................................................................49
9.1 CFLUSH.D.L1..........................................................................................................49
9.2 Other Custom Instructions .........................................................................................49
9.3 SiFive Feature Disable CSR ......................................................................................49
10 Debug ......................................................................................................................51
10.1 Debug CSRs ..........................................................................................................51
10.1.1 Trace and Debug Register Select (tselect)....................................................51
10.1.2 Trace and Debug Data Registers (tdata1-3) ..................................................52
10.1.3 Debug Control and Status Register (dcsr) .......................................................53
10.1.4 Debug PC dpc ...............................................................................................53
10.1.5 Debug Scratch dscratch...............................................................................53
10.2 Breakpoints ............................................................................................................53
10.2.1 Breakpoint Match Control Register mcontrol ..................................................53
3
剩余61页未读,继续阅读
资源评论
ppcust
- 粉丝: 38
- 资源: 725
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功