$ wget https://gist.githubusercontent.com/miyo/b36f38354a634d5801b4921423b1b120/raw/fbb97f5d2daf941e5d8a7a9a58bd1091196cdfb2/u-boot.diff
$ git clone git://git.denx.de/u-boot.git
$ cd u-boot
$ git checkout -b v2017.11 refs/tags/v2017.11
$ patch -p1 ../u-boot.diff
$ make ARCH=arm zynq_eclypsez7_defconfig
$ make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- all
This file contains 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_property -dict { PACKAGE_PIN E3 IOSTANDARD LVCMOS33 } [get_ports { CLK100MHZ }]; #IO_L12P_T1_MRCC_35 Sch=gclk[100] | |
create_clock -add -name sys_clk_pin -period 10.00 -waveform {0 5} [get_ports { CLK100MHZ }]; | |
set_property -dict { PACKAGE_PIN E1 IOSTANDARD LVCMOS33 } [get_ports { led0_b }]; #IO_L18N_T2_35 Sch=led0_b | |
set_property -dict { PACKAGE_PIN F6 IOSTANDARD LVCMOS33 } [get_ports { led0_g }]; #IO_L19N_T3_VREF_35 Sch=led0_g | |
set_property -dict { PACKAGE_PIN G6 IOSTANDARD LVCMOS33 } [get_ports { led0_r }]; #IO_L19P_T3_35 Sch=led0_r | |
set_property -dict { PACKAGE_PIN G4 IOSTANDARD LVCMOS33 } [get_ports { led1_b }]; #IO_L20P_T3_35 Sch=led1_b | |
set_property -dict { PACKAGE_PIN J4 IOSTANDARD LVCMOS33 } [get_ports { led1_g }]; #IO_L21P_T3_DQS_35 Sch=led1_g | |
set_property -dict { PACKAGE_PIN G3 IOSTANDARD LVCMOS33 } [get_ports { led1_r }]; #IO_L20N_T3_35 Sch=led1_r | |
set_property -dict { PACKAGE_PIN H4 IOSTANDARD LVCMOS33 } [get_ports { led2_b }]; #IO_L21N_T3_DQS_35 Sch=led2_b |
This file contains 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
# Echo_Server -- | |
# Open the server listening socket | |
# and enter the Tcl event loop | |
# | |
# Arguments: | |
# port The server's port number | |
proc Echo_Server {port} { | |
global terminate | |
set s [socket -server EchoAccept $port] |
This file contains 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
# Echo_Server -- | |
# Open the server listening socket | |
# and enter the Tcl event loop | |
# | |
# Arguments: | |
# port The server's port number | |
proc Echo_Server {port} { | |
global terminate | |
set s [socket -server EchoAccept $port] |
This file contains 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
# Echo_Server -- | |
# Open the server listening socket | |
# and enter the Tcl event loop | |
# | |
# Arguments: | |
# port The server's port number | |
proc Echo_Server {port} { | |
global terminate | |
set s [socket -server EchoAccept $port] |
This file contains 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
require 'nokogiri' | |
xml = Nokogiri::XML($stdin) | |
texts = xml.xpath('//xmlns:text') | |
texts.each{|text| | |
str = "" | |
text.xpath('xmlns:tspan').each{|n| | |
str += n.text | |
} | |
puts str |
This file contains 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
require 'tempfile' | |
class Vivado | |
def self.BUILD; :BUILD; end | |
def self.CONFIG; :CONFIG; end | |
def initialize(dir="prj", name="top", top=nil, kind=Vivado.BUILD) | |
@dir = dir | |
@name = name |
This file contains 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
# THIS IS AN EXAMPLE SCRIPT OF WEB SCRAPING | |
# DO NOT ATACK THE WEB SITE | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import sys | |
import urllib | |
if len(sys.argv) < 2: |
This file contains 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
`default_nettype none | |
module bram_to_fifo | |
( | |
input wire CLK, | |
input wire RST, | |
output logic WE, | |
output logic [7:0] DATA_IN, | |
This file contains 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
`default_nettype none | |
module bram_copy | |
( | |
input wire clk, | |
input wire resetn, | |
output wire clk_0, | |
output wire rst_0, | |
output wire en_0, |
NewerOlder