
GRMON3-UM
June 2019, Version 3.1.0
135
www.cobham.com/gaisler
41. grcg - syntax
NAME
grcg - Control clock gating
SYNOPSIS
grcg
subcommand
?
args
? ?
grcg#
?
DESCRIPTION
This command provides functions to control the GRCLKGATE core. If more than one core exists in the system,
then the name of the core to control should be specified as the last command option (after the subcommand). The
'
info sys
' command lists the controller names.
grcg clkinfo ?
grcg#
?
Show register values.
grcg enable
number
?
grcg#
?
grcg disable
number
?
grcg#
?
Enable or disable a clock gate. Argument
number
may be replaced by the keyword
all
.
RETURN VALUE
Upon successful completion grcg clkinfo returns three masks, where each bit of the masks represents a clock gate.
The first mask shows unlock-bits, the second enabled-bits and the third reset-bits.
The other sub commands has no return value.
EXAMPLE
Enable all clock gates
grmon3> grcg enable all
Clock enable function 7 on the GRCLKGATE core with index 1.
grmon3> grcg enable 7 grcg1