コード例 #1
0
ファイル: FWID_G540x2_34.py プロジェクト: cmcquinn/mksocfpga
def gen_fwid(*args,**kwargs):
    # construct the descriptor object
    fw  = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    fw.fpga_part_number = "7z020"
    fw.num_leds = 5
    fw.board_name = "Snickerdoodle black"

    c = fw.connector.add()
    c.name = "JA.GPIO1"
    c.pins = 25

    c = fw.connector.add()
    c.name = "JA.GPIO2"
    c.pins = 25

    c = fw.connector.add()
    c.name = "JB.GPIO1"
    c.pins = 25

    c = fw.connector.add()
    c.name = "JB.GPIO2"
    c.pins = 25

    c = fw.connector.add()
    c.name = "JC.GPIO1"
    c.pins = 25


    return fw
コード例 #2
0
def gen_fwid(*args,**kwargs):
    # construct the descriptor object
    fw  = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    fw.fpga_part_number = "altera socfpga"
    fw.num_leds = 4
    fw.board_name = "Terasic DE0-Nano"

    c = fw.connector.add()
    c.name = "GPIO0.P2"
    c.pins = 17

    c = fw.connector.add()
    c.name = "GPIO0.P3"
    c.pins = 17

    c = fw.connector.add()
    c.name = "GPIO1.P2"
    c.pins = 17

    c = fw.connector.add()
    c.name = "GPIO1.P3"
    c.pins = 17

    return fw
コード例 #3
0
def gen_fwid(*args, **kwargs):
    # construct the descriptor object
    fw = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    fw.fpga_part_number = "altera socfpga"
    fw.num_leds = 4
    fw.board_name = "Terasic DE0-Nano"

    c = fw.connector.add()
    c.name = "GPIO0.P2"
    c.pins = 17

    c = fw.connector.add()
    c.name = "GPIO0.P3"
    c.pins = 17

    c = fw.connector.add()
    c.name = "GPIO1.P2"
    c.pins = 17

    c = fw.connector.add()
    c.name = "GPIO1.P3"
    c.pins = 17

    return fw
コード例 #4
0
ファイル: FWID_MJD2CB_32.py プロジェクト: JDSquared/mksocfpga
def gen_fwid(*args,**kwargs):
    # construct the descriptor object
    fw  = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    fw.fpga_part_number = "7z010"
    fw.num_leds = 0
    fw.board_name = "JDCBM"

    c = fw.connector.add()
    c.name = "GPIO0.P1"
    c.pins = 32

    return fw
コード例 #5
0
def gen_fwid(*args, **kwargs):
    # construct the descriptor object
    fw = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    fw.fpga_part_number = "7z010"
    fw.num_leds = 0
    fw.board_name = "JDCBM"

    c = fw.connector.add()
    c.name = "GPIO0.P1"
    c.pins = 32

    return fw
コード例 #6
0
def gen_fwid(*args, **kwargs):
    # construct the descriptor object
    fw = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    # 1 hm2 LED
    fw.fpga_part_number = "7z020"
    fw.num_leds = 1
    fw.board_name = "Prototype"

    # 24 pins called out in PIN_PROTOTYPE.vhd
    c = fw.connector.add()
    c.name = "JA1"
    c.pins = 24

    return fw
コード例 #7
0
def gen_fwid(*args, **kwargs):
    # construct the descriptor object
    fw = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    # Of the 5 LEDs on the Snickerdoodle board,
    # 1 is accessable for user applications
    fw.fpga_part_number = "7z020"
    fw.num_leds = 1
    fw.board_name = "Prototype"

    # 25 out of the 40 pins on each header are usable
    c = fw.connector.add()
    c.name = "JA.GPIO1"
    c.pins = 17

    return fw
コード例 #8
0
def gen_fwid(*args, **kwargs):
    # construct the descriptor object
    fw = Firmware()
    fw.build_sha = get_git_revision_short_hash()
    fw.comment = get_build_url()

    fw.fpga_part_number = "xczu3eg-sbva484-1-e"
    fw.num_leds = 1
    fw.board_name = "ULTR"

    c = fw.connector.add()
    c.name = "GPIO0.P0"
    c.pins = 18

    c = fw.connector.add()
    c.name = "GPIO0.P1"
    c.pins = 18

    return fw
コード例 #9
0
ファイル: custom-fwid.py プロジェクト: cmcquinn/machinekit
import google.protobuf.text_format
from machinetalk.protobuf.firmware_pb2 import Firmware, Connector
import subprocess

def get_git_revision_short_hash():
    return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip()

maxsize = 2048
width = 32  # of MIF file
format = '<L'  # LittleEndian

# construct the descriptor object
fw  = Firmware()

try:
    fw.build_sha = get_git_revision_short_hash()
except Exception:
    fw.build_sha = "not a git repo"

try:
    fw.comment = os.getenv("BUILD_URL") # jenkins job id
except Exception:
    fw.comment = "$BUILD_URL unset"

fw.fpga_part_number = "7z020"
fw.num_leds = 4
fw.board_name = "Replicookie"

# 25 out of the 40 pins on each header are usable
c = fw.connector.add()
c.name = "JA.GPIO1"
コード例 #10
0
ファイル: custom-fwid.py プロジェクト: ArcEye/machinekit
import google.protobuf.text_format
from machinetalk.protobuf.firmware_pb2 import Firmware, Connector
import subprocess

def get_git_revision_short_hash():
    return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip()

maxsize = 2048
width = 32  # of MIF file
format = '<L'  # LittleEndian

# construct the descriptor object
fw  = Firmware()

try:
    fw.build_sha = get_git_revision_short_hash()
except Exception:
    fw.build_sha = "not a git repo"

try:
    fw.comment = os.getenv("BUILD_URL") # jenkins job id
except Exception:
    fw.comment = "$BUILD_URL unset"

fw.fpga_part_number = "altera socfpga"
fw.num_leds = 4
fw.board_name = "Terasic DE0-Nano"

c = fw.connector.add()
c.name = "gpio0.p2"
c.pins = 17