Skip to content

Instantly share code, notes, and snippets.

View crclayton's full-sized avatar

Charles Clayton crclayton

View GitHub Profile
@crclayton
crclayton / avmm_regmap.v
Created August 9, 2023 17:22
AVMM Register Map
`default_nettype none
// cclayton - simple/generic AVMM regmap
module avmm_regmap #(
NUM_READ_ONLY_REG = 10,
NUM_READ_WRITE_REG = 10,
DATA_WIDTH = 32,
ADDRESS_STEP = 5
)(
@crclayton
crclayton / DatePickerCalendar.cs
Created August 23, 2016 22:19
C# code to have a date picker for only the month/year in WPF
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using Calendar = System.Windows.Controls.Calendar;
'put the excel file, the image folder, and the script in the same folder
spreadsheetName = "Countries.xlsx"
imagesType = ".png"
imageNameColumn = "A"
imageColumn = "D"
imageWidth = 150
Set objExcel = CreateObject("Excel.Application")