Skip to content

Instantly share code, notes, and snippets.

@Mic92
Mic92 / 0_README.md
Last active January 3, 2016 16:19
Ein paar Tipps beim Ausführen von Testbenches.

Hier mein Script was ich benutze um den Testbench zu starten. (da mir die Gui zu langsamer über SSH ist und gerade wackeligen eduroam WLAN-Netz) Ihr müsst nur die Variablen an euer Projekt anpassen. Vor dem Ausführen sollte man auf jeden Fall 1 Mal Verilog-NC gestartet haben, sodass das Testbenchverzeichnis erzeugt wird.

Mein Setup ist folgendes:

  • über rsync aktualisiere ich die Verilog-Dateien (sshfs tut es eventuell auch).

  • dann starte ich über ssh mein Skript (eeets2 habe ich den Server in meiner ssh config genannt):

    $ ssh eeets2 <PROJECT_ROOT>/df2/run-testbench.sh

  • ich lasse im Testbench ein Dumpfile erzeugen, welche es nach der Simulation herunter laden lasse.

@jonhoo
jonhoo / packet-generator.cpp
Created December 4, 2013 00:27
Complete example code showing how to construct a UDP packet from scratch and inject it on a WiFi interface in Linux
/**
* Hello, and welcome to this brief, but hopefully complete, example file for
* wireless packet injection using pcap.
*
* Although there are various resources for this spread on the web, it is hard
* to find a single, cohesive piece that shows how everything fits together.
* This file aims to give such an example, constructing a fully valid UDP packet
* all the way from the 802.11 PHY header (through radiotap) to the data part of
* the packet and then injecting it on a wireless interface
*