Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
#
# This file is part of LiteICLink.
#
# Copyright (c) 2019-2020 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import sys
import argparse
from eez import scpi
from utime import ticks_ms
TIMEOUT = 5000
def init_dlog_message(msg):
scpi('DISP:TEXT "Init DLOG ' + msg + '"')
def init_y12_and_y13():
init_dlog_message("Y14")
BLOCK RESETPATHS;
BLOCK ASYNCPATHS;
## ULX3S v2.0 and v2.1
# The clock "usb" and "gpdi" sheet
#USE PRIMARY NET "clk_25mhz";
LOCATE COMP "clk_25mhz" SITE "G2";
IOBUF PORT "clk_25mhz" PULLMODE=NONE IO_TYPE=LVCMOS33;
FREQUENCY PORT "clk_25mhz" 25.0000 MHz;
module top_vgatest_640x480
(
input clk_25mhz,
// input clk_stm32,
// output clk_eth,
output [3:0] gpdi_dp,
input [7:3] R_in,
output [7:3] R_out,
input [7:2] G_in,
output [7:2] G_out,
/**
* Rob 5/16/2019
* Github: Rob4226
*
* Basic code using U-blox based GPS module via UART
* using HardwareSerial and NeoGPS Arudino library to
* parse various NMEA sentences with ESP32 or other boards.
*
* */
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 06.01.2021 12:44:12
// Design Name:
// Module Name: top
// Project Name:
// Target Devices:
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 22:30:37 12/10/2013
-- Design Name:
-- Module Name: container - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 22:30:37 12/10/2013
-- Design Name:
-- Module Name: container - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
/* shifts left the '1' over pos times to create a single HIGH bit at location pos. */
#define BIT(pos) ( 1<<(pos) )
/* Set single bit at pos to '1' by generating a mask
in the proper bit location and ORing x with the mask. */
#define SET_BIT(x, pos) ( (x) |= (BIT(pos)) )
/* Set single bit at pos to '0' by generating a mask
in the proper bit location and ORing x with the mask. */
#define UNSET_BIT(x, pos) ( (x) &= ~(BIT(pos)) )
/* Set single bit at pos to opposite of what is currently is by generating a mask
in the proper bit location and ORing x with the mask. */
// C library headers
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// Linux headers
#include <fcntl.h> // Contains file controls like O_RDWR
#include <errno.h> // Error integer and strerror() function
#include <termios.h> // Contains POSIX terminal control definitions
#include <unistd.h> // write(), read(), close()