Skip to content

Instantly share code, notes, and snippets.

Kenneth Wilke KennethWilke

  • Carve Systems
  • San Antonio, Texas
Block or report user

Report or block KennethWilke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@KennethWilke
KennethWilke / Makefile
Created Oct 19, 2017
Vivado SystemVerilog Makefile
View Makefile
XVLOG_FILES=xvlog.log xvlog.pb xsim.dir/
XELAB_FILES=webtalk*.log webtalk*.jou xelab.log xelab.pb .Xil/
XSIM_FILES=xsim*.log xsim*.jou work.top.wdb
all: xsim.dir/
xsim.dir/: *.sv
@echo "Parsing HDL"
@xvlog --sv *.sv
@echo "Elaborating design"
View g2-checker.py
#!/usr/bin/env python
import paramiko
import sys
# LSHW parsing
def ls_parse_branch(lines, depth=1):
data = {}
while len(lines):
line = lines.pop(0)
if line[depth:].startswith(' ') and ':' in line:
View example.log
kwilke@kbawx:/tmp$ python test.py http://suchprogramming.com
ERROR: http://suchprogramming.com has content type "text/html; charset=UTF-8"
kwilke@kbawx:/tmp$ python test.py http://suchprogramming.com/wp-content/uploads/2016/03/parity.png
OK!
View dict_iteritems.py
ages = {'John': 23,
'Bailey': 36,
'George': 12}
for name, age in ages.iteritems():
print "{0} is {1} years old".format(name, age)
View test.py
import sys
times_to_run = int(sys.argv[1])
times_ran = 0
for i in range(0, times_to_run):
times_ran += 1
print "Did it {0} times!".format(times_ran)
You can’t perform that action at this time.