Skip to content

Instantly share code, notes, and snippets.

@kdpatino
kdpatino / main.cpp
Created October 9, 2017 16:20
Psram Read
/*
* Copyright 2016 <Admobilize>
* MATRIX Labs [http://creator.matrix.one]
* This file is part of MATRIX Creator firmware for MCU
* Author: Andrés Calderón [andres.calderon@admobilize.com]
*
* MATRIX Creator firmware for MCU is free software: you can redistribute
* it and/or 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 your option) any later version.
@kdpatino
kdpatino / clk.c
Created March 23, 2017 01:48
blink.c
#include <wiringPi.h>
int main(void) {
wiringPiSetup();
pinMode(5,OUTPUT) ;
while(1){
digitalWrite (5, HIGH) ; delay(100);
digitalWrite (5, LOW) ; delay(100);
######################
# Timing Constraints #
######################
##### Grouping Constraints #####
NET CLKIN_I TNM_NET = clk50_grp;
##### Clock Period Constraints #####
TIMESPEC TS_PER_CLK50 = PERIOD "clk50_grp" 20.0 ns;
@kdpatino
kdpatino / clk_gen.v
Last active March 11, 2017 00:06
DCM FPGA
//////////////////////////////////////////////////////////////////////////////*/
module matrix_clkgen (
CLKIN,
RST,
CLKFX
);
input CLKIN;