Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
2  software/libcompiler-rt/Makefile
@@ -5,7 +5,7 @@ CFLAGS+=-D_YUGA_LITTLE_ENDIAN=0 -D_YUGA_BIG_ENDIAN=1 -Wno-missing-prototypes
OBJECTS=divsi3.o modsi3.o comparedf2.o negsf2.o negdf2.o addsf3.o subsf3.o mulsf3.o divsf3.o lshrdi3.o muldi3.o divdi3.o ashldi3.o ashrdi3.o udivmoddi4.o \
floatsisf.o floatunsisf.o fixsfsi.o fixunssfsi.o adddf3.o subdf3.o muldf3.o divdf3.o floatsidf.o floatunsidf.o floatdidf.o fixdfsi.o fixunsdfsi.o \
- clzsi2.o ctzsi2.o
+ clzsi2.o ctzsi2.o udivdi3.o
all: libcompiler-rt.a
View
38 software/memtest/main.c
@@ -26,6 +26,38 @@ static void membw_service(void)
}
}
+static void memtest_service(void)
+{
+ static unsigned int test_buffer[64*1024*1024/4] __attribute__((aligned(16)));
+ static unsigned char reading;
+ //int i;
+
+ if(reading) {
+ if(!memtest_w_busy_read()) {
+ //printf("starting read\n");
+ /*for(i=0;i<64;i++) {
+ printf("%08x", test_buffer[i]);
+ if((i % 4) == 3)
+ printf("\n");
+ }*/
+ memtest_r_reset_write(1);
+ memtest_r_base_write((unsigned int)test_buffer);
+ memtest_r_length_write(sizeof(test_buffer));
+ memtest_r_shoot_write(1);
+ reading = 0;
+ }
+ } else {
+ if(!memtest_r_busy_read()) {
+ printf("err=%d\n", memtest_r_error_count_read());
+ memtest_w_reset_write(1);
+ memtest_w_base_write((unsigned int)test_buffer);
+ memtest_w_length_write(sizeof(test_buffer));
+ memtest_w_shoot_write(1);
+ reading = 1;
+ }
+ }
+}
+
int main(void)
{
irq_setmask(0);
@@ -33,10 +65,16 @@ int main(void)
uart_init();
puts("Memory testing software built "__DATE__" "__TIME__"\n");
+
+ if((memtest_w_magic_read() != 0x361f) || (memtest_r_magic_read() != 0x361f)) {
+ printf("Memory test cores not detected\n");
+ while(1);
+ }
time_init();
while(1) {
+ memtest_service();
membw_service();
}
View
6 software/videomixer/main.c
@@ -102,9 +102,9 @@ static void membw_service(void)
nr = lasmicon_bandwidth_nreads_read();
nw = lasmicon_bandwidth_nwrites_read();
f = identifier_frequency_read();
- rdb = nr*f >> (24 - 7);
- wrb = nw*f >> (24 - 7);
- printf("read:%4dMbps write:%4dMbps all:%4dMbps\n", rdb/1000000, wrb/1000000, (rdb + wrb)/1000000);
+ rdb = (nr*f >> (24 - 7))/1000000ULL;
+ wrb = (nw*f >> (24 - 7))/1000000ULL;
+ printf("read:%5dMbps write:%5dMbps all:%5dMbps\n", rdb, wrb, rdb + wrb);
}
}

No commit comments for this range

Something went wrong with that request. Please try again.