This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some general fixes. Addition of Vector v0.9 support : v20200518.0
- Loading branch information
1 parent
70f39d7
commit 40f8d50
Showing
41 changed files
with
5,819 additions
and
2,214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* | ||
* Copyright (c) 2005-2020 Imperas Software Ltd., www.imperas.com | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. | ||
* | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
// VMI header files | ||
#include "vmi/vmiTypes.h" | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// REGISTER DEFINITIONS | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Use this to declare a register type name | ||
// | ||
#define CLIC_FIELDS(_N) riscvCLICFields_##_N | ||
|
||
// | ||
// Use this to declare a register type name | ||
// | ||
#define CLIC_REG_TYPE(_N) riscvCLIC_##_N | ||
|
||
// | ||
// Use this to declare a 32-bit CLIC register | ||
// | ||
#define CLIC_REG_STRUCT_DECL(_N) typedef union { \ | ||
Uns32 bits; \ | ||
CLIC_FIELDS(_N) fields; \ | ||
} CLIC_REG_TYPE(_N) | ||
|
||
// ----------------------------------------------------------------------------- | ||
// cliccfg (offset 0x0000) | ||
// ----------------------------------------------------------------------------- | ||
|
||
typedef struct { | ||
Uns32 nvbits : 1; | ||
Uns32 nlbits : 4; | ||
Uns32 nmbits : 2; | ||
Uns32 _u1 : 25; | ||
} CLIC_FIELDS(cliccfg); | ||
|
||
// define 32 bit type | ||
CLIC_REG_STRUCT_DECL(cliccfg); | ||
|
||
// ----------------------------------------------------------------------------- | ||
// clicinfo (offset 0x0004) | ||
// ----------------------------------------------------------------------------- | ||
|
||
typedef struct { | ||
Uns32 num_interrupt : 13; | ||
Uns32 version : 8; | ||
Uns32 CLICINTCTLBITS : 4; | ||
Uns32 _u1 : 7; | ||
} CLIC_FIELDS(clicinfo); | ||
|
||
// define 32 bit type | ||
CLIC_REG_STRUCT_DECL(clicinfo); | ||
|
||
// ----------------------------------------------------------------------------- | ||
// clicintattr (offset 0x1002+4*i etc) | ||
// ----------------------------------------------------------------------------- | ||
|
||
typedef struct { | ||
Uns32 shv : 1; | ||
Uns32 trig : 2; | ||
Uns32 _u1 : 3; | ||
Uns32 mode : 2; | ||
} CLIC_FIELDS(clicintattr); | ||
|
||
// define 32 bit type | ||
CLIC_REG_STRUCT_DECL(clicintattr); | ||
|
||
// | ||
// Use this to define a CLIC register | ||
// | ||
#define CLIC_REG_DECL(_N) CLIC_REG_TYPE(_N) _N | ||
|
Oops, something went wrong.