File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments