Point to SiFive license | Add require on Arty

This commit is contained in:
abejgonzalez
2020-11-06 10:18:10 -08:00
parent b0fc0457aa
commit c721d897f3
17 changed files with 221 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
// See LICENSE.Sifive for license details.
#ifndef _SDBOOT_COMMON_H
#define _SDBOOT_COMMON_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#include <platform.h>
#include <smp.h>
#include "common.h"

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _RISCV_BITS_H
#define _RISCV_BITS_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
/* Derived from <linux/const.h> */
#ifndef _SIFIVE_CONST_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _SIFIVE_CLINT_H
#define _SIFIVE_CLINT_H
@@ -11,4 +11,4 @@
#define CLINT_MTIME 0xBFF8
#define CLINT_MTIME_size 0x8
#endif /* _SIFIVE_CLINT_H */
#endif /* _SIFIVE_CLINT_H */

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _SIFIVE_GPIO_H
#define _SIFIVE_GPIO_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef PLIC_H
#define PLIC_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _SIFIVE_SPI_H
#define _SIFIVE_SPI_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _SIFIVE_UART_H
#define _SIFIVE_UART_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _RISCV_TEST_DEFAULTS_H
#define _RISCV_TEST_DEFAULTS_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _SECTIONS_H
#define _SECTIONS_H

View File

@@ -1,3 +1,4 @@
// See LICENSE.Sifive for license details.
#ifndef SIFIVE_SMP
#define SIFIVE_SMP
#include "platform.h"
@@ -14,7 +15,7 @@
#define NONSMP_HART 0
#endif
/* If your test cannot handle multiple-threads, use this:
/* If your test cannot handle multiple-threads, use this:
* smp_disable(reg1)
*/
#define smp_disable(reg1, reg2) \

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#include <stdarg.h>
#include <stdint.h>
#include <stdbool.h>

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#ifndef _SDBOOT_KPRINTF_H
#define _SDBOOT_KPRINTF_H

View File

@@ -1,4 +1,4 @@
// See LICENSE for license details.
// See LICENSE.Sifive for license details.
#include <stdint.h>
#include <platform.h>

View File

@@ -16,6 +16,8 @@ import chipyard.harness.{ComposeHarnessBinder, OverrideHarnessBinder}
class WithArtyResetHarnessBinder extends ComposeHarnessBinder({
(system: HasPeripheryDebugModuleImp, th: ArtyFPGATestHarness, ports: Seq[Bool]) => {
require(ports.size == 2)
withClockAndReset(th.clock_32MHz, th.ck_rst) {
// Debug module reset
th.dut_ndreset := ports(0)