增加plic文件,测试仿真
This commit is contained in:
9
tb/sw/src/plic.c
Normal file
9
tb/sw/src/plic.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "plic.h"
|
||||
|
||||
volatile uint32_t *const plic_priority = (uint32_t *)(PLIC_BASE);
|
||||
|
||||
volatile uint32_t *const plic_pending_0_31 = (uint32_t*)( PLIC_BASE + PLIC_PENDING_0_31 );
|
||||
volatile uint32_t *const plic_enable_0_31 = (uint32_t*)( PLIC_BASE + PLIC_ENABLE_0_31 );
|
||||
|
||||
volatile uint32_t *const plic_threshold_0 = (uint32_t*)( PLIC_BASE + PLIC_THRESHOLD_0 );
|
||||
volatile uint32_t *const plic_claim = (uint32_t*)( PLIC_BASE + PLIC_CLAIM );
|
||||
Reference in New Issue
Block a user