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
import os | |
import subprocess | |
import sys | |
env = os.environ.copy() | |
args = sys.argv[1:] | |
print(args) | |
while args: | |
arg = args.pop(0) |
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
module corescore_emitter_uart | |
#( | |
parameter clk_freq_hz = 0, | |
parameter baud_rate = 57600) | |
( | |
input wire i_clk, | |
input wire i_rst, | |
input wire [7:0] i_data, | |
input wire i_valid, | |
output reg o_ready, |
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
# | |
# Makefile: Makefile for building subservient firmware | |
# | |
# SPDX-FileCopyrightText: 2021 Olof Kindgren <olof.kindgren@gmail.com> | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
TOOLCHAIN_PREFIX ?= riscv64-unknown-elf- | |
%.elf: start.S %.c | |
$(TOOLCHAIN_PREFIX)gcc -Os -march=rv32i -mabi=ilp32 -nostdlib -o $@ \ |
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
import sys | |
from elftools.dwarf.descriptions import describe_form_class | |
from elftools.elf.elffile import ELFFile | |
def decode_funcname(dwarfinfo, address): | |
# Go over all DIEs in the DWARF information, looking for a subprogram | |
# entry with an address range that includes the given address. Note that | |
# this simplifies things by disregarding subprograms that may have | |
# split address ranges. |
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
#define GPIO_ADDR 0x40000000 | |
#define HALT_ADDR 0x90000000 | |
/* | |
a0 = GPIO address | |
a1 = String address | |
t0 = Character to write | |
*/ | |
.globl _start |
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
diff --git a/edalize/icarus.py b/edalize/icarus.py | |
index 4e62e45..72e6df6 100644 | |
--- a/edalize/icarus.py | |
+++ b/edalize/icarus.py | |
@@ -16,7 +16,7 @@ $(TARGET): | |
iverilog -s$(TOPLEVEL) -c $(TARGET).scr -o $@ $(IVERILOG_OPTIONS) | |
run: $(VPI_MODULES) $(TARGET) | |
- vvp -n -M. -l icarus.log $(patsubst %.vpi,-m%,$(VPI_MODULES)) $(TARGET) -fst $(EXTRA_OPTIONS) | |
+ vvp -n -M. -l icarus.log $(patsubst %.vpi,-m%,$(VPI_MODULES)) $(VVP_OPTIONS) $(TARGET) -fst $(EXTRA_OPTIONS) |
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
#!/usr/bin/env python3 | |
import argparse | |
import siliconcompiler as sc | |
import os | |
def fusesoc2edam(): | |
from fusesoc.config import Config | |
from fusesoc.coremanager import CoreManager |
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
CAPI=2: | |
name : ::timer:0 | |
filesets: | |
rtl: | |
files: | |
- hdl/timer_thing.sv : {file_type : systemVerilogSource} | |
tb: |
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 servive | |
( | |
input wire i_clk, | |
input wire i_rst_n, | |
output wire q, | |
output wire uart_txd); | |
parameter memfile = "zephyr_hello.hex"; | |
parameter memsize = 8192; |
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
#!/usr/bin/env python3 | |
import io | |
import os | |
import shutil | |
import sys | |
import tarfile | |
import urllib.request | |
class Symbiflow: | |
def __init__(self, cache_root): |
NewerOlder