summaryrefslogtreecommitdiff
path: root/usrp2/fpga/opencores/spi_boot/sim
diff options
context:
space:
mode:
authorjcorgan2008-09-08 01:00:12 +0000
committerjcorgan2008-09-08 01:00:12 +0000
commite0fcbaee124d3e8c4c11bdda662f88e082352058 (patch)
treea51ef1c8b949681f45e5664478e8515065cfff5b /usrp2/fpga/opencores/spi_boot/sim
parentc86f6c23c6883f73d953d64c28ab42cedb77e4d7 (diff)
downloadgnuradio-e0fcbaee124d3e8c4c11bdda662f88e082352058.tar.gz
gnuradio-e0fcbaee124d3e8c4c11bdda662f88e082352058.tar.bz2
gnuradio-e0fcbaee124d3e8c4c11bdda662f88e082352058.zip
Merged r9433:9527 from features/gr-usrp2 into trunk. Adds usrp2 and gr-usrp2 top-level components. Trunk passes distcheck with mb-gcc installed, but currently not without them. The key issue is that when mb-gcc is not installed, the build system skips over the usrp2/firmware directory, and the firmware include files don't get put into the dist tarball. But we can't do the usual DIST_SUBDIRS method as the firmware is a subpackage.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9528 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/fpga/opencores/spi_boot/sim')
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/CVS/Entries1
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/CVS/Repository1
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/CVS/Root1
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/CVS/Template0
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Entries2
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Repository1
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Root1
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Template0
-rw-r--r--usrp2/fpga/opencores/spi_boot/sim/rtl_sim/Makefile159
9 files changed, 166 insertions, 0 deletions
diff --git a/usrp2/fpga/opencores/spi_boot/sim/CVS/Entries b/usrp2/fpga/opencores/spi_boot/sim/CVS/Entries
new file mode 100644
index 000000000..9487498ad
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/CVS/Entries
@@ -0,0 +1 @@
+D/rtl_sim////
diff --git a/usrp2/fpga/opencores/spi_boot/sim/CVS/Repository b/usrp2/fpga/opencores/spi_boot/sim/CVS/Repository
new file mode 100644
index 000000000..4e2e09740
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/CVS/Repository
@@ -0,0 +1 @@
+spi_boot/sim
diff --git a/usrp2/fpga/opencores/spi_boot/sim/CVS/Root b/usrp2/fpga/opencores/spi_boot/sim/CVS/Root
new file mode 100644
index 000000000..44b2aa23b
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/CVS/Root
@@ -0,0 +1 @@
+:pserver:anonymous@cvs.opencores.org:/cvsroot/anonymous
diff --git a/usrp2/fpga/opencores/spi_boot/sim/CVS/Template b/usrp2/fpga/opencores/spi_boot/sim/CVS/Template
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/CVS/Template
diff --git a/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Entries b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Entries
new file mode 100644
index 000000000..e3d0dc145
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Entries
@@ -0,0 +1,2 @@
+/Makefile/1.2/Sun Apr 10 18:14:19 2005//
+D
diff --git a/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Repository b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Repository
new file mode 100644
index 000000000..114ab862f
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Repository
@@ -0,0 +1 @@
+spi_boot/sim/rtl_sim
diff --git a/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Root b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Root
new file mode 100644
index 000000000..44b2aa23b
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Root
@@ -0,0 +1 @@
+:pserver:anonymous@cvs.opencores.org:/cvsroot/anonymous
diff --git a/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Template b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Template
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/CVS/Template
diff --git a/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/Makefile b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/Makefile
new file mode 100644
index 000000000..46fb3c635
--- /dev/null
+++ b/usrp2/fpga/opencores/spi_boot/sim/rtl_sim/Makefile
@@ -0,0 +1,159 @@
+##############################################################################
+#
+# Makefile for the spi_boot project.
+#
+# The dependencies for all VHDL source files are stored here.
+#
+# Copyright (c) 2005, Arnim Laeuger (arniml@opencores.org)
+#
+# All rights reserved
+#
+##############################################################################
+
+
+PROJECT_DIR = ../..
+RTL_DIR = $(PROJECT_DIR)/rtl/vhdl
+BENCH_DIR = $(PROJECT_DIR)/bench/vhdl
+
+
+
+ANALYZE=ghdl -a --std=87 --workdir=work
+ELABORATE=ghdl -e --std=87 --workdir=work
+
+.PHONY: all
+all: work elaborate
+
+work:
+ mkdir work
+
+work/spi_boot_pack-p.o: $(RTL_DIR)/spi_boot_pack-p.vhd
+ $(ANALYZE) $(RTL_DIR)/spi_boot_pack-p.vhd
+
+work/spi_counter.o: $(RTL_DIR)/spi_counter.vhd \
+ work/spi_boot_pack-p.o
+ $(ANALYZE) $(RTL_DIR)/spi_counter.vhd
+work/spi_counter-c.o: $(RTL_DIR)/spi_counter-c.vhd \
+ work/spi_counter.o
+ $(ANALYZE) $(RTL_DIR)/spi_counter-c.vhd
+
+work/spi_boot.o: $(RTL_DIR)/spi_boot.vhd \
+ work/spi_boot_pack-p.o
+ $(ANALYZE) $(RTL_DIR)/spi_boot.vhd
+work/spi_boot-c.o: $(RTL_DIR)/spi_boot-c.vhd \
+ work/spi_boot.o \
+ work/spi_counter-c.o
+ $(ANALYZE) $(RTL_DIR)/spi_boot-c.vhd
+
+work/chip-e.o: $(RTL_DIR)/chip-e.vhd
+ $(ANALYZE) $(RTL_DIR)/chip-e.vhd
+
+work/chip-full-a.o: $(RTL_DIR)/chip-full-a.vhd \
+ work/chip-e.o
+ $(ANALYZE) $(RTL_DIR)/chip-full-a.vhd
+work/chip-full-c.o: $(RTL_DIR)/chip-full-c.vhd \
+ work/chip-full-a.o \
+ work/spi_boot-c.o
+ $(ANALYZE) $(RTL_DIR)/chip-full-c.vhd
+
+work/chip-mmc-a.o: $(RTL_DIR)/chip-mmc-a.vhd \
+ work/chip-e.o
+ $(ANALYZE) $(RTL_DIR)/chip-mmc-a.vhd
+work/chip-mmc-c.o: $(RTL_DIR)/chip-mmc-c.vhd \
+ work/chip-mmc-a.o \
+ work/spi_boot-c.o
+ $(ANALYZE) $(RTL_DIR)/chip-mmc-c.vhd
+
+work/chip-sd-a.o: $(RTL_DIR)/chip-sd-a.vhd \
+ work/chip-e.o
+ $(ANALYZE) $(RTL_DIR)/chip-sd-a.vhd
+work/chip-sd-c.o: $(RTL_DIR)/chip-sd-c.vhd \
+ work/chip-sd-a.o \
+ work/spi_boot-c.o
+ $(ANALYZE) $(RTL_DIR)/chip-sd-c.vhd
+
+work/chip-minimal-a.o: $(RTL_DIR)/chip-minimal-a.vhd \
+ work/chip-e.o
+ $(ANALYZE) $(RTL_DIR)/chip-minimal-a.vhd
+work/chip-minimal-c.o: $(RTL_DIR)/chip-minimal-c.vhd \
+ work/chip-minimal-a.o \
+ work/spi_boot-c.o
+ $(ANALYZE) $(RTL_DIR)/chip-minimal-c.vhd
+
+work/ram_loader.o: $(RTL_DIR)/sample/ram_loader.vhd
+ $(ANALYZE) $(RTL_DIR)/sample/ram_loader.vhd
+work/ram_loader-c.o: $(RTL_DIR)/sample/ram_loader-c.vhd \
+ work/ram_loader.o
+ $(ANALYZE) $(RTL_DIR)/sample/ram_loader-c.vhd
+
+work/tb_pack-p.o: $(BENCH_DIR)/tb_pack-p.vhd
+ $(ANALYZE) $(BENCH_DIR)/tb_pack-p.vhd
+
+work/card.o: $(BENCH_DIR)/card.vhd \
+ work/tb_pack-p.o
+ $(ANALYZE) $(BENCH_DIR)/card.vhd
+work/card-c.o: $(BENCH_DIR)/card-c.vhd \
+ work/card.o
+ $(ANALYZE) $(BENCH_DIR)/card-c.vhd
+
+work/tb_elem.o: $(BENCH_DIR)/tb_elem.vhd \
+ work/spi_boot_pack-p.o \
+ work/tb_pack-p.o
+ $(ANALYZE) $(BENCH_DIR)/tb_elem.vhd
+work/tb_elem-full-c.o: $(BENCH_DIR)/tb_elem-full-c.vhd \
+ work/tb_elem.o \
+ work/chip-full-c.o \
+ work/card-c.o
+ $(ANALYZE) $(BENCH_DIR)/tb_elem-full-c.vhd
+work/tb_elem-mmc-c.o: $(BENCH_DIR)/tb_elem-mmc-c.vhd \
+ work/tb_elem.o \
+ work/chip-mmc-c.o \
+ work/card-c.o
+ $(ANALYZE) $(BENCH_DIR)/tb_elem-mmc-c.vhd
+work/tb_elem-sd-c.o: $(BENCH_DIR)/tb_elem-sd-c.vhd \
+ work/tb_elem.o \
+ work/chip-sd-c.o \
+ work/card-c.o
+ $(ANALYZE) $(BENCH_DIR)/tb_elem-sd-c.vhd
+work/tb_elem-minimal-c.o: $(BENCH_DIR)/tb_elem-minimal-c.vhd \
+ work/tb_elem.o \
+ work/chip-minimal-c.o \
+ work/card-c.o
+ $(ANALYZE) $(BENCH_DIR)/tb_elem-minimal-c.vhd
+
+work/tb.o: $(BENCH_DIR)/tb.vhd
+ $(ANALYZE) $(BENCH_DIR)/tb.vhd
+work/tb-c.o: $(BENCH_DIR)/tb-c.vhd \
+ work/tb.o \
+ work/tb_elem-full-c.o \
+ work/tb_elem-mmc-c.o \
+ work/tb_elem-sd-c.o \
+ work/tb_elem-minimal-c.o
+ $(ANALYZE) $(BENCH_DIR)/tb-c.vhd
+
+work/tb_rl.o: $(BENCH_DIR)/tb_rl.vhd
+ $(ANALYZE) $(BENCH_DIR)/tb_rl.vhd
+work/tb_rl-c.o: $(BENCH_DIR)/tb_rl-c.vhd \
+ work/tb_rl.o \
+ work/chip-full-c.o \
+ work/card-c.o \
+ work/ram_loader-c.o
+ $(ANALYZE) $(BENCH_DIR)/tb_rl-c.vhd
+
+
+.PHONY: elaborate
+elaborate: tb_behav_c0 tb_rl_behav_c0
+
+tb_behav_c0: work/tb-c.o
+ $(ELABORATE) tb_behav_c0; \
+ strip tb_behav_c0
+
+tb_rl_behav_c0: work/tb_rl-c.o
+ $(ELABORATE) tb_rl_behav_c0; \
+ strip tb_rl_behav_c0
+
+.PHONY: analyze
+analyze: work/tb-c.o work/tb_rl-c.o
+
+.PHONY: clean
+clean:
+ rm -rf work tb_behav_c0 tb_rl_behav_c0 *~