1
0
mirror of https://github.com/UzixLS/rgb2ypbpr.git synced 2025-07-19 07:11:46 +03:00

add ltspice circuit

This commit is contained in:
UzixLS
2021-01-15 20:05:07 +03:00
parent d7609469ed
commit 88e06d5ed4
4 changed files with 319 additions and 0 deletions

24
spice/Makefile Normal file
View File

@ -0,0 +1,24 @@
export PATH:=/cygdrive/c/Hwdev/modelsim181/modelsim_ase/win32aloem:/cygdrive/c/Hwdev/iverilog/bin/:/cygdrive/c/Hwdev/sjasmplus/:/cygdrive/c/Dev/srec/:${PATH}
all: testbench_pwldac
testbench_pwldac: V=testbench_pwldac.v
# testbench_%:
# iverilog -g2005-sv ${VFLAGS} -o $@.vvp $@.v ${V}
# vvp $@.vvp
# @rm $@.vvp
testbench_%:
test ! -d work || rm -rf work
vlib work
test ! -n "$(filter %.v,${V})" || vlog -sv $(filter %.v,${V})
test ! -n "$(filter %.vhd %.vhdl,${V})" || vcom $(filter %.vhd %.vhdl,${V})
vsim -do 'run -all' $@
@rm transcript
%.bin: %.asm
sjasmplus $<
%.mem: %.bin
srec_cat $< -binary -o $@ -vmem 8