Skip to content

Commit 8bbd8b8

Browse files
committed
[top_earlgrey] Fix vendor in JTAG IDCODE
The JTAG IDCODE field uses a manufacturer ID from the JEDEC list of manufacturers. This list organizes its entries in banks. Google is in bank 9. The previously used number was from bank 10. With this change, OpenOCD reports the right vendor: ``` $ /tools/openocd/bin/openocd -s util/openocd -f board/lowrisc-earlgrey-nexysvideo.cfg Open On-Chip Debugger 0.10.0+dev-00823-g20804cb4d (2019-10-30-22:27) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html none separate Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 30000 kHz Info : JTAG tap: riscv.tap tap/device found: 0x04f5484d (mfg: 0x426 (Google Inc), part: 0x4f54, ver: 0x0) Info : datacount=2 progbufsize=8 Info : Examined RISC-V core; found 1 harts Info : hart 0: XLEN=32, misa=0x40001104 Info : Listening on port 3333 for gdb connections ``` Fixes #490
1 parent 1d0d927 commit 8bbd8b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hw/top_earlgrey/doc/top_earlgrey.sv.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module top_${top["name"]} #(
6464
localparam JTAG_IDCODE = {
6565
4'h0, // Version
6666
16'h4F54, // Part Number: "OT"
67-
11'h4A6, // Manufacturer Identity: Google
67+
11'h426, // Manufacturer Identity: Google
6868
1'b1 // (fixed)
6969
};
7070

hw/top_earlgrey/rtl/autogen/top_earlgrey.sv

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module top_earlgrey #(
4242
localparam JTAG_IDCODE = {
4343
4'h0, // Version
4444
16'h4F54, // Part Number: "OT"
45-
11'h4A6, // Manufacturer Identity: Google
45+
11'h426, // Manufacturer Identity: Google
4646
1'b1 // (fixed)
4747
};
4848

util/openocd/target/lowrisc-earlgrey.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if { [info exists CHIPNAME] } {
1313
if { [info exists CPUTAPID ] } {
1414
set _CPUTAPID $CPUTAPID
1515
} else {
16-
set _CPUTAPID 0x04F5494D
16+
set _CPUTAPID 0x04f5484d
1717
}
1818

1919
jtag newtap $_CHIPNAME tap -irlen 5 -expected-id $_CPUTAPID

0 commit comments

Comments
 (0)