$ curl -O http://bellard.org/riscvemu/riscvemu-2016-12-20.1.tar.gz
$ tar xfz riscvemu-2016-12-20.1.tar.gz
$ cd riscvemu-2016-12-20.1
$ patch -p0 < ../riscvemu-2016-12-20.1-osx.patch
$ make
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
local radio = require('radio') | |
radio.CompositeBlock():connect( | |
radio.RtlSdrSource(88.5e6 - 250e3, 1102500), -- RTL-SDR source, offset-tuned to 88.5 MHz - 250 kHz | |
radio.TunerBlock(-250e3, 200e3, 5), -- Translate -250 kHz, filter 200 kHz, decimate 5 | |
radio.FrequencyDiscriminatorBlock(1.25), -- Frequency demodulate with 1.25 modulation index | |
radio.LowpassFilterBlock(128, 15e3), -- Low-pass filter 15 kHz for L+R audio | |
radio.FMDeemphasisFilterBlock(75e-6), -- FM de-emphasis filter with 75 uS time constant | |
radio.DownsamplerBlock(5), -- Downsample by 5 | |
radio.PulseAudioSink(1) -- Play to system audio with PulseAudio |
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
local radio = require('radio') | |
radio.CompositeBlock():connect( | |
radio.RtlSdrSource(88.5e6 - 250e3, 1102500), -- RTL-SDR source, offset-tuned to 88.5 MHz - 250 kHz | |
radio.TunerBlock(-250e3, 200e3, 5), -- Translate -250 kHz, filter 200 kHz, decimate 5 | |
radio.FrequencyDiscriminatorBlock(1.25), -- Frequency demodulate with 1.25 modulation index | |
radio.LowpassFilterBlock(128, 15e3), -- Low-pass filter 15 kHz for L+R audio | |
radio.FMDeemphasisFilterBlock(75e-6), -- FM de-emphasis filter with 75 uS time constant | |
radio.DownsamplerBlock(5), -- Downsample by 5 | |
radio.PulseAudioSink(1) -- Play to system audio with PulseAudio |
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 SI5351_PLL_A 0 | |
#define SI5351_PLL_B 1 | |
#define SI5351_MULTISYNTH_DIV_4 4 | |
#define SI5351_MULTISYNTH_DIV_6 6 | |
#define SI5351_MULTISYNTH_DIV_8 8 | |
#define SI5351_R_DIV_1 (0<<4) | |
#define SI5351_R_DIV_2 (1<<4) | |
#define SI5351_R_DIV_4 (2<<4) | |
#define SI5351_R_DIV_8 (3<<4) |
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 python | |
import serial | |
import numpy as np | |
import pylab as pl | |
dev = '/dev/cu.usbmodem401' | |
ser = serial.Serial(dev) | |
def fetch_data(): | |
ser.write("data 0\r") |
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 python | |
# | |
# RTL FM Receiver - Python based realtime RF signal processing experiment | |
# @edy555 2016 | |
# requirement: numpy, scipy, pyaudio, pyrtlsdr | |
import numpy as np | |
import scipy.signal | |
import array | |
import rtlsdr |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder