From: Franck Jullien <[email protected]> If you use this file, you are using usb_blaster and your statup script should start with:
source [find ./tcl/interface/altera-usb-blaster.cfg] usb_blaster pin6 1 usb_blaster pin8 1 source [find ./tcl/target/vjtag.cfg] .... Signed-off-by: Franck Jullien <[email protected]> --- tcl/target/vjtag.cfg | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 tcl/target/vjtag.cfg diff --git a/tcl/target/vjtag.cfg b/tcl/target/vjtag.cfg new file mode 100644 index 0000000..52d0fdc --- /dev/null +++ b/tcl/target/vjtag.cfg @@ -0,0 +1,15 @@ +set _CHIPNAME or1k +set _ENDIAN big + +# force an error till we get a good number +# Your FPGA JTAG ID +set _FPGATAPID 0x020B30DD + +# jtag scan chain +# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) +# All altera FPGA have IRLEN = 10 +jtag newtap $_CHIPNAME cpu -irlen 10 -expected-id $_FPGATAPID + +set _TARGETNAME [format "%s.cpu" $_CHIPNAME] +target create $_TARGETNAME or1k -endian $_ENDIAN -chain-position $_TARGETNAME + -- 1.7.7 _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
