Add TutorialNoCConfig
This commit is contained in:
@@ -6,7 +6,7 @@ LDFLAGS= -static
|
||||
include libgloss.mk
|
||||
|
||||
PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd \
|
||||
streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft
|
||||
streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd
|
||||
|
||||
spiflash.img: spiflash.py
|
||||
python3 $<
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#include <inttypes.h>
|
||||
#include <math.h>
|
||||
|
||||
#define FFT_WRITE_LANE 0x2000
|
||||
#define FFT_RD_LANE_BASE 0x2008
|
||||
#define FFT_WRITE_LANE 0x2400
|
||||
#define FFT_RD_LANE_BASE 0x2408
|
||||
// addr of read lane i is FFT_RD_LANE_BASE + i * 8
|
||||
|
||||
// from generators/fft-generator/test_pts.py (in the fft-generator repo)
|
||||
@@ -68,4 +68,4 @@ int main(void) {
|
||||
|
||||
printf("PASS: FFT Test Passed\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "mmio.h"
|
||||
|
||||
#define GCD_STATUS 0x2000
|
||||
#define GCD_X 0x2004
|
||||
#define GCD_Y 0x2008
|
||||
#define GCD_GCD 0x200C
|
||||
#define GCD_STATUS 0x1000
|
||||
#define GCD_X 0x1004
|
||||
#define GCD_Y 0x1008
|
||||
#define GCD_GCD 0x100C
|
||||
|
||||
unsigned int gcd_ref(unsigned int x, unsigned int y) {
|
||||
while (y != 0) {
|
||||
@@ -37,6 +37,7 @@ int main(void)
|
||||
printf("Hardware result %d does not match reference value %d\n", result, ref);
|
||||
return 1;
|
||||
}
|
||||
printf("Hardware result %d is correct for GCD\n", result);
|
||||
return 0;
|
||||
}
|
||||
// DOC include end: GCD test
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#define PASSTHROUGH_WRITE 0x2000
|
||||
#define PASSTHROUGH_WRITE_COUNT 0x2008
|
||||
#define PASSTHROUGH_READ 0x2100
|
||||
#define PASSTHROUGH_READ_COUNT 0x2108
|
||||
#define PASSTHROUGH_WRITE 0x2200
|
||||
#define PASSTHROUGH_WRITE_COUNT 0x2208
|
||||
#define PASSTHROUGH_READ 0x2300
|
||||
#define PASSTHROUGH_READ_COUNT 0x2308
|
||||
|
||||
#include "mmio.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user