From: Jean THOMAS Date: Thu, 30 Jul 2020 15:03:45 +0000 (+0200) Subject: Add burstdet code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1466f22725e10833cafe8917ef4a764b0dd45543;p=gram.git Add burstdet code --- diff --git a/examples/headless/main.c b/examples/headless/main.c index 7f108c2..cfcd36e 100644 --- a/examples/headless/main.c +++ b/examples/headless/main.c @@ -129,6 +129,8 @@ int main(int argc, char *argv[]) { gram_init(&ctx, &profile, (void*)0x10000000, (void*)0x00009000, (void*)0x00008000); printf("done\n"); + gram_reset_burstdet(&ctx); + srand(time(NULL)); for (i = 0; i < kPatternSize; i++) { pattern[i] = rand(); @@ -176,6 +178,8 @@ int main(int argc, char *argv[]) { } } + printf("Burstdet %d-%d\n", gram_read_burstdet(&ctx, 0), gram_read_burstdet(&ctx, 1)); + printf("Memtest miss score (lowest is better): %d/100\n", (miss/4)*100/kPatternSize); close(serial_port);