OpenCores
no use no use 1/1 no use no use
OpenOCD: reg npc 0x100
by jo58 on Feb 15, 2016
jo58
Posts: 7
Joined: Oct 31, 2015
Last seen: Jun 28, 2016
Hi, I'm using OpenOCD to run program on my fusesoc in an Altera Cyclone IV FPGA. I used http://opencores.org/or1k/ORCONF2013_Workshop_ORPSoC_On_DE0_Nano to get it work. They say I should use: telnet localhost 4444 halt; load_image //orconf2013/sw/timer/timer; reg npc 0x100; resume I was wondering what the command "reg npc 0x100" does. I'm new to this matter; can anyone explain it to me? Best regards
RE: OpenOCD: reg npc 0x100
by olof on Feb 15, 2016
olof
Posts: 218
Joined: Feb 10, 2010
Last seen: Dec 17, 2018
Hi, I'm using OpenOCD to run program on my fusesoc in an Altera Cyclone IV FPGA. I used http://opencores.org/or1k/ORCONF2013_Workshop_ORPSoC_On_DE0_Nano to get it work. They say I should use: telnet localhost 4444 halt; load_image //orconf2013/sw/timer/timer; reg npc 0x100; resume I was wondering what the command "reg npc 0x100" does. I'm new to this matter; can anyone explain it to me? Best regards


"reg npc 0x100" means that you set the NPC register (Next Program Counter) to address 0x100. This means that when you start running the CPU, it will read its first instruction from memory address 0x100. 0x100 is the default start address fro OpenRISC programs

Hope this helps,
Olof
RE: OpenOCD: reg npc 0x100
by jo58 on Feb 16, 2016
jo58
Posts: 7
Joined: Oct 31, 2015
Last seen: Jun 28, 2016
Thanks for your help!
no use no use 1/1 no use no use
© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.