OpenCores
URL https://opencores.org/ocsvn/openarty/openarty/trunk

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [board/] [exmulti.c] - Diff between revs 36 and 49

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 36 Rev 49
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
// Filename:    exmulti.c
// Filename:    exmulti.c
//
//
// Project:     OpenArty, an entirely open SoC based upon the Arty platform
// Project:     OpenArty, an entirely open SoC based upon the Arty platform
//
//
// Purpose:     Very similar to exstartup.c, the purpose of this program is to
// Purpose:     Very similar to exstartup.c, the purpose of this program is to
//              demonstrate several working peripherals.  To the exstartup
//              demonstrate several working peripherals.  To the exstartup
//      peripherals, we'll add the GPS and the GPS PPS tracking.
//      peripherals, we'll add the GPS and the GPS PPS tracking.
//
//
// Creator:     Dan Gisselquist, Ph.D.
// Creator:     Dan Gisselquist, Ph.D.
//              Gisselquist Technology, LLC
//              Gisselquist Technology, LLC
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
//
//
// This program is free software (firmware): you can redistribute it and/or
// This program is free software (firmware): you can redistribute it and/or
// modify it under the terms of  the GNU General Public License as published
// modify it under the terms of  the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License, or (at
// by the Free Software Foundation, either version 3 of the License, or (at
// your option) any later version.
// your option) any later version.
//
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for more details.
// for more details.
//
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU General Public License along
// with this program.  (It's in the $(ROOT)/doc directory, run make with no
// with this program.  (It's in the $(ROOT)/doc directory, run make with no
// target there if the PDF file isn't present.)  If not, see
// target there if the PDF file isn't present.)  If not, see
// <http://www.gnu.org/licenses/> for a copy.
// <http://www.gnu.org/licenses/> for a copy.
//
//
// License:     GPL, v3, as defined and found on www.gnu.org,
// License:     GPL, v3, as defined and found on www.gnu.org,
//              http://www.gnu.org/licenses/gpl.html
//              http://www.gnu.org/licenses/gpl.html
//
//
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
//
//
#include "artyboard.h"
#include "zipcpu.h"
#include "zipsys.h"
#include "zipsys.h"
 
#include "artyboard.h"
 
 
void    idle_task(void) {
void    idle_task(void) {
        while(1)
        while(1)
                zip_idle();
                zip_idle();
}
}
 
 
void    wait_on_interrupt(int mask) {
void    wait_on_interrupt(int mask) {
        zip->pic = DALLPIC|mask;
        zip->z_pic = DALLPIC|mask;
        zip->pic = EINT(mask);
        zip->z_pic = EINT(mask);
        zip_rtu();
        zip_rtu();
}
}
 
 
int     user_stack[256];
int     user_stack[256];
void    user_task(void) {
void    user_task(void) {
        const unsigned white = 0x070707, black = 0;
        const unsigned white = 0x070707, black = 0;
        while(1) {
        while(1) {
                unsigned        btn, subnow, sw;
                unsigned        btn, subnow, sw;
 
 
                subnow = (sys->io_gps_sub >> 28)&0x0f;
                subnow = (sys->io_gps_sub >> 28)&0x0f;
 
 
                // If the button is pressed, toggle the LED
                // If the button is pressed, toggle the LED
                // Otherwise, turn the LED off.
                // Otherwise, turn the LED off.
                //
                //
 
 
                // First, get all the pressed buttons
                // First, get all the pressed buttons
                btn = (sys->io_btnsw) & 0x0f0;
                btn = (sys->io_btnsw) & 0x0f0;
                // Now, acknowledge the button presses that we just read
                // Now, acknowledge the button presses that we just read
                sys->io_btnsw = btn;
                sys->io_btnsw = btn;
                btn >>= 4;
                btn >>= 4;
 
 
                // Now, use the time as the toggle function.
                // Now, use the time as the toggle function.
                btn = (subnow ^ btn)&btn & 0x07;
                btn = (subnow ^ btn)&btn & 0x07;
 
 
                sys->io_ledctrl = btn | 0x070;
                sys->io_ledctrl = btn | 0x070;
 
 
                sw = sys->io_btnsw & 0x0f;
                sw = sys->io_btnsw & 0x0f;
                for(int i=0; i<4; i++)
                for(int i=0; i<4; i++)
                        sys->io_clrled[i] = (sw & (1<<i)) ? white : black;
                        sys->io_clrled[i] = (sw & (1<<i)) ? white : black;
 
 
        }
        }
}
}
 
 
int     mpyuhi(int a, int b) {
int     mpyuhi(int a, int b) {
        // err_in_ns = mpyuhi(err_in_ns, err);
        // err_in_ns = mpyuhi(err_in_ns, err);
        // __asm__("MPYUHI %1,%0" :"+r"(a):"r"(b));
        // __asm__("MPYUHI %1,%0" :"+r"(a):"r"(b));
        unsigned alo, blo, ahi, bhi, f, o, i, l, rhi;
        unsigned alo, blo, ahi, bhi, f, o, i, l, rhi;
 
 
        alo = (a & 0x0ffff);
        alo = (a & 0x0ffff);
        ahi = (a >> 16)&0x0ffff;
        ahi = (a >> 16)&0x0ffff;
        blo = (b & 0x0ffff);
        blo = (b & 0x0ffff);
        bhi = (b >> 16)&0x0ffff;
        bhi = (b >> 16)&0x0ffff;
 
 
        l = alo * blo;
        l = alo * blo;
        o = ahi * blo;
        o = ahi * blo;
        i = alo * bhi;
        i = alo * bhi;
        f = ahi * bhi;
        f = ahi * bhi;
 
 
        rhi = o + i + (l >> 16);
        rhi = o + i + (l >> 16);
        return (rhi >> 16) + f;
        return (rhi >> 16) + f;
        // return f;
        // return f;
        // return ahi;
        // return ahi;
}
}
 
 
int     hexdigit(int v) {
int     hexdigit(int v) {
        if (v < 10)
        if (v < 10)
                return v + '0';
                return v + '0';
        else
        else
                return v + 'A' - 10;
                return v + 'A' - 10;
}
}
 
 
int     errstring[128];
int     errstring[128];
 
 
void    entry(void) {
void    main(int argc, char **argv) {
        const unsigned red = 0x0ff0000, green = 0x0ff00, blue = 0x0ff,
        const unsigned red = 0x0ff0000, green = 0x0ff00, blue = 0x0ff,
                white = 0x070707, black = 0, dimgreen = 0x1f00,
                white = 0x070707, black = 0, dimgreen = 0x1f00,
                second = 81250000;
                second = CLOCKFREQHZ;
        int     i, sw;
        int     i, sw;
 
 
        // Start the GPS converging ...
        // Start the GPS converging ...
        sys->io_gps.g_alpha = 2;
        sys->io_gps.g_alpha = 2;
        sys->io_gps.g_beta  = 0x14bda12f;
        sys->io_gps.g_beta  = 0x14bda12f;
        sys->io_gps.g_gamma = 0x1f533ae8;
        sys->io_gps.g_gamma = 0x1f533ae8;
 
 
        int     user_context[16];
        int     user_context[16];
        for(i=0; i<15; i++)
        for(i=0; i<15; i++)
                user_context[i] = 0;
                user_context[i] = 0;
        user_context[15] = (unsigned)idle_task;
        user_context[15] = (unsigned)idle_task;
        zip_restore_context(user_context);
        zip_restore_context(user_context);
 
 
        for(i=0; i<4; i++)
        for(i=0; i<4; i++)
                sys->io_clrled[i] = red;
                sys->io_clrled[i] = red;
        sys->io_ledctrl = 0x0ff;
        sys->io_ledctrl = 0x0ff;
 
 
        // Clear the PIC
        // Clear the PIC
        //
        //
        //      Acknowledge all interrupts, turn off all interrupts
        //      Acknowledge all interrupts, turn off all interrupts
        //
        //
        zip->pic = 0x7fff7fff;
        zip->z_pic = CLEARPIC;
        while(sys->io_pwrcount < (second >> 4))
        while(sys->io_pwrcount < (second >> 4))
                ;
                ;
 
 
        // Repeating timer, every 250ms
        // Repeating timer, every 250ms
        zip->tma = (second/4) | 0x80000000;
        zip->z_tma = TMR_INTERVAL | (second/4);
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        sys->io_clrled[0] = green;
        sys->io_clrled[0] = green;
        sys->io_ledctrl = 0x010;
        sys->io_ledctrl = 0x010;
 
 
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        sys->io_clrled[0] = dimgreen;
        sys->io_clrled[0] = dimgreen;
        sys->io_clrled[1] = green;
        sys->io_clrled[1] = green;
        sys->io_scope[0].s_ctrl = 32 | 0x80000000; // SCOPE_TRIGGER;
        sys->io_scope[0].s_ctrl = SCOPE_NO_RESET | 32;
        sys->io_ledctrl = 0x020;
        sys->io_ledctrl = 0x020;
 
 
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        sys->io_clrled[1] = dimgreen;
        sys->io_clrled[1] = dimgreen;
        sys->io_clrled[2] = green;
        sys->io_clrled[2] = green;
        sys->io_ledctrl = 0x040;
        sys->io_ledctrl = 0x040;
 
 
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        sys->io_clrled[2] = dimgreen;
        sys->io_clrled[2] = dimgreen;
        sys->io_clrled[3] = green;
        sys->io_clrled[3] = green;
        sys->io_ledctrl = 0x080;
        sys->io_ledctrl = 0x080;
 
 
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        sys->io_clrled[3] = dimgreen;
        sys->io_clrled[3] = dimgreen;
 
 
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        for(i=0; i<4; i++)
        for(i=0; i<4; i++)
                sys->io_clrled[i] = black;
                sys->io_clrled[i] = black;
 
 
        // Wait one second ...
        // Wait one second ...
        for(i=0; i<4; i++)
        for(i=0; i<4; i++)
                wait_on_interrupt(SYSINT_TMA);
                wait_on_interrupt(SYSINT_TMA);
 
 
        // Blink all the LEDs
        // Blink all the LEDs
        //      First turn them on
        //      First turn them on
        sys->io_ledctrl = 0x0ff;
        sys->io_ledctrl = 0x0ff;
        // Then wait a quarter second
        // Then wait a quarter second
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
        // Then turn the back off
        // Then turn the back off
        sys->io_ledctrl = 0x0f0;
        sys->io_ledctrl = 0x0f0;
        // and wait another quarter second
        // and wait another quarter second
        wait_on_interrupt(SYSINT_TMA);
        wait_on_interrupt(SYSINT_TMA);
 
 
        // Now, read buttons, and flash an LED on any button being held
        // Now, read buttons, and flash an LED on any button being held
        // down ... ? neat?
        // down ... ? neat?
 
 
        // Now, let's synchronize ourselves to the PPS
        // Now, let's synchronize ourselves to the PPS
        user_context[13] = (int)&user_stack[256];
        user_context[13] = (int)&user_stack[256];
        user_context[15] = (int)&user_task;
        user_context[15] = (int)&user_task;
        zip_restore_context(user_context);
        zip_restore_context(user_context);
 
 
        do {
        do {
                wait_on_interrupt(SYSINT_PPS|SYSINT_TMA);
                wait_on_interrupt(SYSINT_PPS|SYSINT_TMA);
        } while((zip->pic & SYSINT_PPS)==0);
        } while((zip->z_pic & SYSINT_PPS)==0);
 
 
        while(1) {
        while(1) {
                int     *s = errstring;
                int     *s = errstring;
 
 
                zip->wdt = CLOCKFREQ_HZ*4;
                zip->z_wdt = CLOCKFREQ_HZ*4;
                sys->io_ledctrl = 0x088;
                sys->io_ledctrl = 0x088;
 
 
                // 1. Read and report the GPS tracking err
                // 1. Read and report the GPS tracking err
 
 
                // Get the upper 32-bits of the error;
                // Get the upper 32-bits of the error;
                int     err = *(int *)(&sys->io_gpstb.tb_err);
                int     err = *(int *)(&sys->io_gpstb.tb_err);
                int     err_in_ns;
                int     err_in_ns;
                /*
                /*
                long    err_in_ns_long = err;
                long    err_in_ns_long = err;
                err_in_ns_long *= 1000000000l;
                err_in_ns_long *= 1000000000l;
                err_in_ns_long >>= 32;
                err_in_ns_long >>= 32;
                int     err_in_ns = (int)(err_in_ns_long);
                int     err_in_ns = (int)(err_in_ns_long);
                */
                */
                int     err_sgn = (err < 0)?1:0;
                int     err_sgn = (err < 0)?1:0;
                err_in_ns = (err<0)?-err:err;
                err_in_ns = (err<0)?-err:err;
                err_in_ns = mpyuhi(err_in_ns, 1000000000);
                err_in_ns = mpyuhi(err_in_ns, 1000000000);
                int     digit;
                int     digit;
 
 
 
 
                *s++ = '\r';
                *s++ = '\r';
                *s++ = '\n';
                *s++ = '\n';
                *s++ = 'G';
                *s++ = 'G';
                *s++ = 'P';
                *s++ = 'P';
                *s++ = 'S';
                *s++ = 'S';
                *s++ = ' ';
                *s++ = ' ';
                *s++ = 'P';
                *s++ = 'P';
                *s++ = 'P';
                *s++ = 'P';
                *s++ = 'S';
                *s++ = 'S';
                *s++ = ' ';
                *s++ = ' ';
                *s++ = 'E';
                *s++ = 'E';
                *s++ = 'r';
                *s++ = 'r';
                *s++ = 'r';
                *s++ = 'r';
                *s++ = ':';
                *s++ = ':';
                *s++ = ' ';
                *s++ = ' ';
 
 
 
 
                *s++ = '0';
                *s++ = '0';
                *s++ = 'x';
                *s++ = 'x';
                *s++ = hexdigit((err>>28)&0x0f);
                *s++ = hexdigit((err>>28)&0x0f);
                *s++ = hexdigit((err>>24)&0x0f);
                *s++ = hexdigit((err>>24)&0x0f);
                *s++ = hexdigit((err>>20)&0x0f);
                *s++ = hexdigit((err>>20)&0x0f);
                *s++ = hexdigit((err>>16)&0x0f);
                *s++ = hexdigit((err>>16)&0x0f);
                *s++ = hexdigit((err>>12)&0x0f);
                *s++ = hexdigit((err>>12)&0x0f);
                *s++ = hexdigit((err>> 8)&0x0f);
                *s++ = hexdigit((err>> 8)&0x0f);
                *s++ = hexdigit((err>> 4)&0x0f);
                *s++ = hexdigit((err>> 4)&0x0f);
                *s++ = hexdigit((err    )&0x0f);
                *s++ = hexdigit((err    )&0x0f);
 
 
                *s++ = ' ';
                *s++ = ' ';
                *s++ = '=';
                *s++ = '=';
                *s++ = '>';
                *s++ = '>';
                *s++ = ' ';
                *s++ = ' ';
 
 
                *s++ = '0';
                *s++ = '0';
                *s++ = 'x';
                *s++ = 'x';
                *s++ = hexdigit((err_in_ns>>28)&0x0f);
                *s++ = hexdigit((err_in_ns>>28)&0x0f);
                *s++ = hexdigit((err_in_ns>>24)&0x0f);
                *s++ = hexdigit((err_in_ns>>24)&0x0f);
                *s++ = hexdigit((err_in_ns>>20)&0x0f);
                *s++ = hexdigit((err_in_ns>>20)&0x0f);
                *s++ = hexdigit((err_in_ns>>16)&0x0f);
                *s++ = hexdigit((err_in_ns>>16)&0x0f);
                *s++ = hexdigit((err_in_ns>>12)&0x0f);
                *s++ = hexdigit((err_in_ns>>12)&0x0f);
                *s++ = hexdigit((err_in_ns>> 8)&0x0f);
                *s++ = hexdigit((err_in_ns>> 8)&0x0f);
                *s++ = hexdigit((err_in_ns>> 4)&0x0f);
                *s++ = hexdigit((err_in_ns>> 4)&0x0f);
                *s++ = hexdigit((err_in_ns    )&0x0f);
                *s++ = hexdigit((err_in_ns    )&0x0f);
 
 
                *s++ = ' ';
                *s++ = ' ';
                *s++ = '=';
                *s++ = '=';
                *s++ = '>';
                *s++ = '>';
                *s++ = ' ';
                *s++ = ' ';
 
 
                *s++ = (err_sgn)?'-':' ';
                *s++ = (err_sgn)?'-':' ';
                // Milliseconds
                // Milliseconds
                digit = err_in_ns / 100000000;
                digit = err_in_ns / 100000000;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 100000000;
                err_in_ns -= digit * 100000000;
                //
                //
                digit = err_in_ns / 10000000;
                digit = err_in_ns / 10000000;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 10000000;
                err_in_ns -= digit * 10000000;
                //
                //
                digit = err_in_ns / 1000000;
                digit = err_in_ns / 1000000;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 1000000;
                err_in_ns -= digit * 1000000;
                // Micro seconds
                // Micro seconds
                digit = err_in_ns / 100000;
                digit = err_in_ns / 100000;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 100000;
                err_in_ns -= digit * 100000;
                //
                //
                digit = err_in_ns / 10000;
                digit = err_in_ns / 10000;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 10000;
                err_in_ns -= digit * 10000;
                //
                //
                digit = err_in_ns / 1000;
                digit = err_in_ns / 1000;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 1000;
                err_in_ns -= digit * 1000;
                // Nano seconds
                // Nano seconds
                *s++ = '.';
                *s++ = '.';
                digit = err_in_ns / 100;
                digit = err_in_ns / 100;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 100;
                err_in_ns -= digit * 100;
                //
                //
                digit = err_in_ns / 10;
                digit = err_in_ns / 10;
                *s++ = digit+'0';
                *s++ = digit+'0';
                err_in_ns -= digit * 10;
                err_in_ns -= digit * 10;
                //
                //
                digit = err_in_ns;
                digit = err_in_ns;
                *s++ = digit+'0';
                *s++ = digit+'0';
                //
                //
                *s++ = ' ';
                *s++ = ' ';
                *s++ = 'u';
                *s++ = 'u';
                *s++ = 'S';
                *s++ = 'S';
                *s++ = '\r';
                *s++ = '\r';
                *s++ = '\n';
                *s++ = '\n';
                *s++ = '\r';
                *s++ = '\r';
                *s++ = '\n';
                *s++ = '\n';
                *s++ = '\0';
                *s++ = '\0';
 
 
                /*
                /*
                zip->dma.ctrl = DMACLEAR;
                zip->z_dma.d_ctrl = DMACLEAR;
                zip->dma.rd = errstring;
                zip->z_dma.d_rd = errstring;
                zip->dma.wr = &sys->io_uart_tx;
                zip->z_dma.d_wr = &sys->io_uart_tx;
                zip->dma.len = s - errstring-1;
                zip->z_dma.d_len = s - errstring-1;
                zip->dma.ctrl = (DMAONEATATIME|DMA_CONSTDST|DMA_GPSRX);
                zip->z_dma.d_ctrl = (DMAONEATATIME|DMA_CONSTDST|DMA_GPSRX);
                wait_on_interrupt(SYSINT_DMAC);
                wait_on_interrupt(SYSINT_DMAC);
                */
                */
 
 
                for(int i=0; errstring[i]; i++) {
                for(int i=0; errstring[i]; i++) {
                        wait_on_interrupt(SYSINT_UARTTX);
                        wait_on_interrupt(SYSINT_UARTTX);
                        sys->io_uart_tx = errstring[i];
                        sys->io_uart_tx = errstring[i];
                        zip->pic = SYSINT_UARTTX;
                        zip->z_pic = SYSINT_UARTTX;
                }
                }
 
 
                sys->io_ledctrl = 0x080;
                sys->io_ledctrl = 0x080;
 
 
                /*
                /*
                zip->dma.rd = &sys->io_gps_rx;
                zip->z_dma.d_rd = &sys->io_gps_rx;
                zip->dma.wr = &sys->io_uart_tx;
                zip->z_dma.d_wr = &sys->io_uart_tx;
                zip->dma.len = 0x01000000;
                zip->z_dma.d_len = 0x01000000;
                zip->dma.ctrl = (DMAONEATATIME|DMA_CONSTDST|DMA_CONSTSRC|DMA_GPSRX);
                zip->z_dma.d_ctrl = (DMAONEATATIME|DMA_CONSTDST|DMA_CONSTSRC|DMA_ONGPSRX);
                wait_on_interrupt(SYSINT_PPS);
                wait_on_interrupt(SYSINT_PPS);
                */
                */
 
 
                /*
                /*
                if (zip_ucc() & CC_FAULT) {
                if (zip_ucc() & CC_FAULT) {
                        zip_save_context(user_context);
                        zip_save_context(user_context);
                        user_context[14] = CC_GIE;
                        user_context[14] = CC_GIE;
                        user_context[15] = (int)&idle_task;
                        user_context[15] = (int)&idle_task;
                        zip_restore_context(user_context);
                        zip_restore_context(user_context);
                }
                }
                */
                */
 
 
                zip->pic = SYSINT_GPSRX | SYSINT_PPS;
                zip->z_pic = SYSINT_GPSRX | SYSINT_PPS;
                do {
                do {
                        wait_on_interrupt(SYSINT_PPS|SYSINT_GPSRX);
                        wait_on_interrupt(SYSINT_PPS|SYSINT_GPSRX);
                        if (zip->pic & SYSINT_GPSRX) {
                        if (zip->z_pic & SYSINT_GPSRX) {
                                sys->io_uart_tx = sys->io_gps_rx;
                                sys->io_uart_tx = sys->io_gps_rx;
                                zip->pic = SYSINT_GPSRX;
                                zip->z_pic = SYSINT_GPSRX;
                        }
                        }
                } while((zip->pic & SYSINT_PPS)==0);
                } while((zip->z_pic & SYSINT_PPS)==0);
 
 
                // wait_on_interrupt(SYSINT_PPS);
                // wait_on_interrupt(SYSINT_PPS);
                // zip->dma.ctrl= DMACLEAR;
                // zip->z_dma.d_ctrl= DMACLEAR;
        }
        }
 
 
        zip_halt();
        zip_halt();
}
}
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.