Skip to content

Instantly share code, notes, and snippets.

View zsteva's full-sized avatar

Zeljko Stevanovic zsteva

View GitHub Profile
@zsteva
zsteva / full_adder.vhdl
Created March 7, 2020 18:23 — forked from hidsh/full_adder.vhdl
VHDL: half adder and full adder
-- full_adder.vhdl
-- desc: 1bit full adder
entity FULL_ADDER is
port(A, B, CIN: in bit;
SUM, COUT: out bit);
end FULL_ADDER;
architecture STRUCT of FULL_ADDER is
component HALF_ADDER
require 'Computer.Build'
controller = state_machine "ide_controller" do |m|
m.input :reset, VHDL::STD_LOGIC
m.input :instr_command, VHDL::STD_LOGIC_VECTOR(7..0)
m.input :instr_address, VHDL::STD_LOGIC_VECTOR(7..0)
m.input :instr_data, VHDL::STD_LOGIC_VECTOR(15..0)
m.output :result_command, VHDL::STD_LOGIC_VECTOR(7..0)
m.output :result_status, VHDL::STD_LOGIC_VECTOR(7..0)
@zsteva
zsteva / HamGridSquare.js
Created May 20, 2019 10:22 — forked from DrPaulBrewer/HamGridSquare.js
find Maidenhead grid square from latitude and longitude
// HamGridSquare.js
// Copyright 2014 Paul Brewer KI6CQ
// License: MIT License http://opensource.org/licenses/MIT
//
// Javascript routines to convert from lat-lon to Maidenhead Grid Squares
// typically used in Ham Radio Satellite operations and VHF Contests
//
// Inspired in part by K6WRU Walter Underwood's python answer
// http://ham.stackexchange.com/a/244
// to this stack overflow question:
@zsteva
zsteva / Si5351A_PSK.ino
Created June 11, 2018 09:25 — forked from NT7S/Si5351A_PSK.ino
Generate PSK31 with an Si5351A
#include <si5351.h>
#include "Wire.h"
Si5351 si5351;
uint16_t varicode[] =
{
0b1010101011000000, // 0 NUL
0b1011011011000000, // 1 SOH
0b1011101101000000, // 2 STX