This file contains hidden or 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
module top( | |
input clk_12M, | |
output LED1, | |
output LED2, | |
output LED3, | |
output LED4, | |
output LED5, | |
output LED6, | |
output LED7, | |
output LED8, |
This file contains hidden or 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
#include <stdio.h> | |
int main() { | |
} | |
This file contains hidden or 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
#include <windows.h> | |
#include <stdio.h> | |
int main() { | |
int nloop = 1024, i; | |
LARGE_INTEGER freq, t0, t1; | |
QueryPerformanceFrequency(&freq); | |
QueryPerformanceCounter(&t0); |
This file contains hidden or 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
#include <unistd.h> | |
#include <time.h> | |
#include <stdio.h> | |
double sec(void) { | |
struct timespec tv; | |
clock_gettime(CLOCK_MONOTONIC, &tv); | |
return tv.tv_sec + tv.tv_nsec / (1000000000.0); |
This file contains hidden or 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
#include <unistd.h> | |
#include <stdio.h> | |
#include <time.h> | |
double sec(void) { | |
struct timespec tv; | |
clock_gettime(CLOCK_MONOTONIC, &tv); | |
return tv.tv_sec + tv.tv_nsec / (1000000000.0); |
This file contains hidden or 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
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) | |
{ | |
int n = 0; | |
char buf[1024]; | |
if (argc >= 2) { |
This file contains hidden or 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
set projName l_ug | |
proc cp { } { # creat proj | |
global projName | |
create_project $projName $projName -part xc7a35ticsg324-1L -force | |
} | |
proc op { } { # open proj | |
global projName | |
open_project $projName/$projName.xpr |
This file contains hidden or 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
module top | |
( | |
input CLK100MHZ, | |
input [3:0] btn, | |
output [3:0] led | |
); | |
reg [31:0] counter; | |
always @(posedge CLK100MHZ) |
This file contains hidden or 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
Performance counter stats for 'sh -c ../configure; make -j256': | |
631718.546417 task-clock (msec) # 4.435 CPUs utilized | |
79,129 context-switches # 0.125 K/sec | |
46,742 cpu-migrations # 0.074 K/sec | |
14,459,831 page-faults # 0.023 M/sec | |
794,193,966,671 cycles # 1.257 GHz (50.80%) | |
<not supported> stalled-cycles-frontend | |
<not supported> stalled-cycles-backend | |
396,607,076,972 instructions # 0.50 insns per cycle (75.66%) |
This file contains hidden or 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
(https://github.com/tanakamura/instruction-bench) | |
Intel(R) Xeon Phi(TM) CPU 7210 @ 1.30GHz | |
== latency/throughput == | |
reg64: add: latency: CPI= 1.11, IPC= 0.90 | |
reg64: add:throughput: CPI= 0.64, IPC= 1.57 | |
reg64: lea: latency: CPI= 1.03, IPC= 0.97 | |
reg64: lea:throughput: CPI= 0.65, IPC= 1.55 | |
reg64: load: latency: CPI= 4.04, IPC= 0.25 | |
reg64: load:throughput: CPI= 1.02, IPC= 0.98 |