Skip to content

Commit d8beb37

Browse files
committed
Added Vivado-specific scripts
1 parent 48e9dde commit d8beb37

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

scripts/allow_wors.tcl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#------------------------------------------------------------------------------
2+
# allow_wors.tcl
3+
# Konstantin Pavlov, pavlovconst@gmail.com
4+
#------------------------------------------------------------------------------
5+
6+
# INFO ------------------------------------------------------------------------
7+
# Simple script to add wor type support in Vivado
8+
# Add this script as a tcl.pre for the Synthesis step
9+
10+
set_param synth.elaboration.rodinMoreOptions "rt::set_parameter compatibilityMode true"

scripts/jtag_to_axi_master.tcl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#------------------------------------------------------------------------------
2+
# jtag_to_axi_master.tcl
3+
# Konstantin Pavlov, pavlovconst@gmail.com
4+
#------------------------------------------------------------------------------
5+
6+
# INFO ------------------------------------------------------------------------
7+
# Use this script to read/write AXI bus through "JTAG to AXI Master" IP-core
8+
9+
# value should be 8 HEX digits == 32bit
10+
proc wr {address value} {
11+
#set address [string range $address 2 [expr {[string length $address]-1}]]
12+
create_hw_axi_txn -force wr_tx [get_hw_axis hw_axi_1] \
13+
-address $address -data $value -len 1 -type write
14+
run_hw_axi -quiet wr_tx
15+
}
16+
17+
proc rd {address} {
18+
#set address [string range $address 2 [expr {[string length $address]-1}]]
19+
create_hw_axi_txn -force rd_tx [get_hw_axis hw_axi_1] \
20+
-address $address -len 1 -type read
21+
run_hw_axi -quiet rd_tx
22+
return 0x[get_property DATA [get_hw_axi_txn rd_tx]]
23+
}
24+

0 commit comments

Comments
 (0)