URL
https://opencores.org/ocsvn/raggedstone/raggedstone/trunk
Subversion Repositories raggedstone
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 9 to Rev 10
- ↔ Reverse comparison
Rev 9 → Rev 10
/trunk/linuxdriver/Kbuild
File deleted
/trunk/linuxdriver/pci_driver_7seg.c
File deleted
/trunk/linuxdriver/userland/send_to_fpga
File deleted
\ No newline at end of file
trunk/linuxdriver/userland/send_to_fpga
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: trunk/linuxdriver/userland/send_to_fpga.c
===================================================================
--- trunk/linuxdriver/userland/send_to_fpga.c (revision 9)
+++ trunk/linuxdriver/userland/send_to_fpga.c (nonexistent)
@@ -1,59 +0,0 @@
-/*
- Interface Program for the Linux Driver for Enterpoint's Raggedstone1 FPGA PCI Board
- This demo driver allows access to the Board's 7segment displays.
-
- License: GPL
- See file "GPL" for details
-
-*/
-
-#include
-#include /* open */
-#include /* exit */
-#include /* ioctl */
-#include
-
-#define MAJOR_NUM 100
-#define IOCTL_SETDPY _IOR(MAJOR_NUM, 0, short int)
-#define DEVICE_NAME "/dev/fpga"
-
-
-int ioctl_setdpy(int file_desc, short int data)
-{
- int ret_val;
-
- ret_val = ioctl(file_desc, IOCTL_SETDPY, data);
-
- if (ret_val < 0)
- {
- printf ("ioctl_set_msg failed:%d\n", ret_val);
- exit(-1);
- }
- return(0);
-}
-
-int main(int argc, char ** argv)
-{
- int file_desc, ret_val;
- char *msg = "Message passed by ioctl\n";
- short int val = 0x7733;
-
- file_desc = open(DEVICE_NAME, 0);
- if (file_desc < 0)
- {
- printf ("Can't open device file: %s\n", DEVICE_NAME);
- exit(-1);
- }
-
- if(argc >= 2 )
- {
-// sscanf(argv[1], "0x%x", &val);
- val = atoi(argv[1]);
-// val = htons(val);
- }
- else
- val = htons(val);
- ioctl_setdpy(file_desc, val);
- close(file_desc);
- exit(0);
-}
Index: trunk/linuxdriver/userland/Makefile
===================================================================
--- trunk/linuxdriver/userland/Makefile (revision 9)
+++ trunk/linuxdriver/userland/Makefile (nonexistent)
@@ -1,8 +0,0 @@
-build:
- cc send_to_fpga.c -o send_to_fpga
-
-clean:
- -rm -f send_to_fpga
-
-install:
- install send_to_fpga /usr/local/bin/
Index: trunk/linuxdriver/Makefile
===================================================================
--- trunk/linuxdriver/Makefile (revision 9)
+++ trunk/linuxdriver/Makefile (nonexistent)
@@ -1,20 +0,0 @@
-ifneq ($(KERNELRELEASE),)
-include Kbuild
-else
-# Normal Makefile
-KERNELDIR := /lib/modules/`uname -r`/build
-
-modules::
- $(MAKE) -C $(KERNELDIR) M=`pwd` $@
-
-clean:
- $(MAKE) -C $(KERNELDIR) M=`pwd` $@
- -rm -f Module.symvers
-
-endif
-
-install:
- -rmmod mod_pci_7seg
- sleep 1
- insmod ./mod_pci_7seg.ko
- -mknod /dev/fpga c 100 0
Index: trunk/pci_7seg.ucf
===================================================================
--- trunk/pci_7seg.ucf (revision 9)
+++ trunk/pci_7seg.ucf (nonexistent)
@@ -1,68 +0,0 @@
-NET "DISP_LED<0>" LOC = "AB20" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_LED<1>" LOC = "AA20" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_LED<2>" LOC = "V18" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_LED<3>" LOC = "Y17" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_LED<4>" LOC = "AB18" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_LED<5>" LOC = "AA18" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_LED<6>" LOC = "W18" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_SEL<0>" LOC = "AA17" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_SEL<1>" LOC = "U17" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_SEL<2>" LOC = "U16" | IOSTANDARD = LVCMOS33 ;
-NET "DISP_SEL<3>" LOC = "U14" | IOSTANDARD = LVCMOS33 ;
-NET "LED_ACCESS" LOC = "AB5" | IOSTANDARD = LVCMOS33 ;
-NET "LED_INIT" LOC = "AA5" | IOSTANDARD = LVCMOS33 ;
-NET "PCI_AD<0>" LOC = "A5" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<10>" LOC = "E9" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<11>" LOC = "F11" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<12>" LOC = "E10" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<13>" LOC = "A8" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<14>" LOC = "B9" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<15>" LOC = "B10" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<16>" LOC = "F17" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<17>" LOC = "F16" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<18>" LOC = "A14" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<19>" LOC = "B14" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<1>" LOC = "B5" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<20>" LOC = "B15" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<21>" LOC = "A15" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<22>" LOC = "F12" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<23>" LOC = "F13" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<24>" LOC = "D15" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<25>" LOC = "E15" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<26>" LOC = "D17" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<27>" LOC = "C17" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<28>" LOC = "B17" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<29>" LOC = "E17" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<2>" LOC = "E6" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<30>" LOC = "A18" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<31>" LOC = "B18" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<3>" LOC = "D6" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<4>" LOC = "C6" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<5>" LOC = "B6" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<6>" LOC = "D7" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<7>" LOC = "E7" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<8>" LOC = "B8" | IOSTANDARD = PCI33_3 ;
-NET "PCI_AD<9>" LOC = "F10" | IOSTANDARD = PCI33_3 ;
-NET "PCI_CBE<0>" LOC = "F9" | IOSTANDARD = PCI33_3 ;
-NET "PCI_CBE<1>" LOC = "C10" | IOSTANDARD = PCI33_3 ;
-NET "PCI_CBE<2>" LOC = "D13" | IOSTANDARD = PCI33_3 ;
-NET "PCI_CBE<3>" LOC = "E13" | IOSTANDARD = PCI33_3 ;
-NET "PCI_CLK" LOC = "A11" | IOSTANDARD = PCI33_3 ;
-NET "PCI_IDSEL" LOC = "D14" | IOSTANDARD = PCI33_3 ;
-NET "PCI_nDEVSEL" LOC = "E12" | IOSTANDARD = PCI33_3 ;
-NET "PCI_nFRAME" LOC = "C13" | IOSTANDARD = PCI33_3 ;
-NET "PCI_nINT" LOC = "B19" | IOSTANDARD = PCI33_3 | SLEW = FAST ;
-NET "PCI_nIRDY" LOC = "A13" | IOSTANDARD = PCI33_3 ;
-NET "PCI_nPERR" LOC = "D12" | IOSTANDARD = PCI33_3 | SLEW = FAST ;
-NET "PCI_nRES" LOC = "A19" | IOSTANDARD = PCI33_3 ;
-NET "PCI_nSERR" LOC = "B12" | IOSTANDARD = PCI33_3 | SLEW = FAST ;
-NET "PCI_nSTOP" LOC = "A12" | IOSTANDARD = PCI33_3 | SLEW = FAST ;
-NET "PCI_nTRDY" LOC = "B13" | IOSTANDARD = PCI33_3 | SLEW = FAST ;
-NET "PCI_PAR" LOC = "A9" | IOSTANDARD = PCI33_3 | SLEW = FAST ;
-NET "LED_ALIVE" LOC = "AB4" | IOSTANDARD = LVCMOS33 ;
-NET "mclk" LOC = "E22";
-NET "red" LOC = "E21";
-NET "grn" LOC = "F21";
-NET "blu" LOC = "F20";
-NET "hs" LOC = "F19";
-NET "vs" LOC = "G19";
Index: trunk/README
===================================================================
--- trunk/README (revision 9)
+++ trunk/README (nonexistent)
@@ -1,46 +0,0 @@
-This logic is for the Enterpoint Spartan-3 based PCI fpga card.
-
-The code needs to be built with the Xilinx tools. You can
-download the Xilinx tools for free from xilinx.com. It also
-generates a bit of the VHDL by perl, so you need that installed
-also.
-
-Steps to building & using this code:
-
-1) Install Linux (it should include perl)
-2) Download and install the Xilinx WebPack for Linux
- * It's about 1GB and Xilinx provides it for free
- * The Xilinx tools include a settings.sh file
- that you need to run to add the tools to your path
-3) Run make to synthisize the image
-4) program your card over jtag with XC3prog
- xc3sprog pci_7seg.bit
-
-
-This port of the OpenCores PCI core was originally done by Manuel Bessler.
-http://projects.varxec.net/raggedstone1
-
-If you get this core installed correctly on the Raggedstone1 card, you
-can dump out the PCI config space and it should look something like this:
-
-root@sid:~# hexdump /proc/bus/pci/05/02.0
-0000000 10ee 0100 0102 0200 0037 0280 0000 0000
-0000010 0000 f800 0000 0000 0000 0000 0000 0000
-0000020 0000 0000 0000 0000 0000 0000 0480 1558
-0000030 0000 0000 0000 0000 0000 0000 0104 0000
-0000040 0000 0000 5671 1234 5672 1234 5673 1234
-0000050 5674 1234 5675 1234 5676 1234 5677 1234
-0000060 5678 1234 5679 1234 5680 1234 5681 1234
-0000070 5682 1234 5683 1234 5684 1234 5685 1234
-0000080 5686 1234 5687 1234 5688 1234 5689 1234
-0000090 5690 1234 5691 1234 5692 1234 5693 1234
-00000a0 5694 1234 5695 1234 5696 1234 5697 1234
-00000b0 5698 1234 5699 1234 5700 1234 5701 1234
-00000c0 5702 1234 5703 1234 5704 1234 5705 1234
-00000d0 5706 1234 5707 1234 5708 1234 5709 1234
-00000e0 5710 1234 5711 1234 5712 1234 0000 0000
-00000f0 0000 0000 0000 0000 0000 0000 0000 0000
-0000100
-
--- Jeff Carr
-
Index: trunk/pci_7seg.xst
===================================================================
--- trunk/pci_7seg.xst (revision 9)
+++ trunk/pci_7seg.xst (nonexistent)
@@ -1,51 +0,0 @@
-set -xsthdpdir ./xst
-run
--ifn pci_7seg.prj
--ifmt mixed
--ofn pci_7seg
--ofmt NGC
--p xc3s400-4-fg456
--top pci_7seg
--opt_mode Speed
--opt_level 1
--iuc NO
--lso pci_7seg.lso
--keep_hierarchy NO
--glob_opt AllClockNets
--rtlview Yes
--read_cores YES
--write_timing_constraints NO
--cross_clock_analysis NO
--hierarchy_separator /
--bus_delimiter <>
--case maintain
--slice_utilization_ratio 100
--verilog2001 YES
--fsm_extract YES -fsm_encoding Auto
--safe_implementation No
--fsm_style lut
--ram_extract Yes
--ram_style Auto
--rom_extract Yes
--rom_style Auto
--mux_extract YES
--decoder_extract YES
--priority_extract YES
--shreg_extract YES
--shift_extract YES
--xor_collapse YES
--resource_sharing YES
--mult_style auto
--iobuf YES
--max_fanout 500
--bufg 8
--register_duplication YES
--equivalent_register_removal YES
--register_balancing No
--slice_packing YES
--optimize_primitives NO
--use_clock_enable Yes
--use_sync_set Yes
--use_sync_reset Yes
--iob auto
--slice_utilization_ratio_maxmargin 5
Index: trunk/Makefile
===================================================================
--- trunk/Makefile (revision 9)
+++ trunk/Makefile (nonexistent)
@@ -1,81 +0,0 @@
-PWD := $(shell pwd)
-
-XST := $(shell which xst)
-
-TMP = tmp/
-$(shell mkdir tmp)
-
-PROJECT := pci_7seg
-
-all: gen_vhdl xst ngdbuild map par trace prom final
-
-gen_vhdl:
- cd source/generate_pci32tlite/ && make
- cd source/generate_pciregs/ && make
-
-log:
- time make all &>build.log
-
-xst: $(PROJECT).ngc
-
-ngdbuild: $(PROJECT).ngc $(PROJECT).ngd
-
-$(PROJECT).ngc:
- @# echo synclib > $(PROJECT).lso # hmm. things are different in ise 9.1
- echo work >> $(PROJECT).lso
- xst -intstyle ise -ifn $(PROJECT).xst -ofn $(PROJECT).syr &> tmp/build.xst.log
- #cat $(PROJECT).syr
- mv $(PROJECT).syr $(TMP)
- mv $(PROJECT).ngr $(PROJECT).lso $(TMP)
- mv xst $(TMP)
-
-$(PROJECT).ngd:
- ngdbuild -intstyle ise -dd "$(PWD)/_ngo" -nt timestamp -uc $(PROJECT).ucf -p xc3s400-fg456-4 $(PROJECT).ngc $(PROJECT).ngd &> tmp/build.ngdbuild.log
- mv $(PROJECT).bld $(TMP)
- mv _ngo $(TMP)
-
-map:
- map -intstyle ise -p xc3s400-fg456-4 -cm area -pr b -k 4 -c 100 -o $(PROJECT)_map.ncd $(PROJECT).ngd $(PROJECT).pcf &> tmp/build.map.log
- mv $(PROJECT)_map.mrp $(PROJECT)_map.ngm $(PROJECT).ngc $(TMP)
-
-par:
- @#par -w -intstyle ise -ol std -n 4 -t 1 $(PROJECT)_map.ncd $(PROJECT).dir $(PROJECT).pcf &> tmp/build.par.log
- par -w -intstyle ise -ol std -t 1 $(PROJECT)_map.ncd $(PROJECT).ncd $(PROJECT).pcf &> tmp/build.par.log
- mv $(PROJECT).xpi $(PROJECT).par $(PROJECT).pad $(TMP)
- mv $(PROJECT)_pad.csv $(PROJECT)_pad.txt $(TMP)
-
-trace:
- trce -intstyle ise -e 3 -l 3 -s 4 -xml $(PROJECT) $(PROJECT).ncd -o $(PROJECT).twr $(PROJECT).pcf &> tmp/build.trce.log
- #cat $(PROJECT).twr
- mv $(PROJECT).twr $(TMP)
- mv $(PROJECT).twx $(TMP)
- mv $(PROJECT)_map.ncd $(PROJECT).ngd $(PROJECT).pcf $(TMP)
-
-prom:
- bitgen -intstyle ise -f $(PROJECT).ut $(PROJECT).ncd &> tmp/build.bitgen.log
- # cp $(PROJECT).bit ../jcarr_last.bit
- #cat $(PROJECT).drc
- mv $(PROJECT).drc $(TMP)
- #cat $(PROJECT).bgn
- mv $(PROJECT).bgn $(TMP)
-
-final:
- -mv $(PROJECT).unroutes *.xml $(TMP)
- -mv $(PROJECT)*.map $(TMP)
- -mv $(PROJECT).ncd $(TMP)
- -grep -A 8 -B 1 ^Selected\ Device tmp/build.xst.log
- -grep -A 8 -B 1 ^Timing\ Summary tmp/build.xst.log
- -grep -A 21 -B 1 ^Design\ Summary tmp/build.map.log
-
-burn:
- xc3sprog $(PROJECT).bit
-
-clean:
- rm -rf $(TMP)
- rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd
- rm -rf *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso
- rm -rf $(PROJECT)_map.* $(PROJECT)_pad.*
- rm -rf _ngo xst
- rm -rf build.log
- rm -rf source/new_*
- rm -rf $(PROJECT).unroutes *.xml
Index: trunk/pci_7seg.bit
===================================================================
--- trunk/pci_7seg.bit (revision 9)
+++ trunk/pci_7seg.bit (nonexistent)
@@ -1,165 +0,0 @@
- ðððð a
-pci_7seg.ncd b 3s400fg456 c 2007/ 2/ 6 d 21:22:42 e =¨ÿÿÿÿª™Uf0 € 0` D0 @ ?å0ÀAÀ“0 À 0 € 0 0 € 0 @ P Ï @ @ @ @ a ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
-ˆ
- ` €
- € €
- ` ` ÿ³3 0 Q Š ˆ @ @ € @
- € @ @ @
- 0 0 0 @ 0 € € € ûÿÿãÿ€¸ˆ ÿÿÿ 0 0 0 Q 0Š þúÜ ˆ ˆ @ Ð ÈÀ€ € €‚À Š € À G @ € @ Á€ A € á (
-
- @ç€ ˆ € @ ” ! ` 0
- P
- 0Â,`
- € @ 0 € € @ € € A ÏOì ûÿ¯? ÿßþÿ 0 0 0 $@ Q 0Šÿÿÿÿþÿª¨ ˆ ˆ€€ ˆ €ÀËÉ À à € @€ „ € O @ ¡ 4 € € É Ø € ” ‡ €( -
- € CŽ b B* @@T „@€ €@ @€ @ 0 0 °
- ° P , 0Ð` à0 8 <0 0 0 € € € € ¢ îúÌÿ3ÿþÿ¿ÿÿ 0 0 0 0 Q 0ŠÿWÿï/ÊÀˆ ü?ÿª ˆ ˆ@ “ÁÓ Ð @€@ @ € b€ ƒl1" QOŒ € €eÀÐ *48ɱ
-% °0 H h‰ € @€ ‡@øÑ 0Ã @0T R€@&