gis_logo.png

Datasheet for the ENC_PD_EMUL_2 GIS Soft IP Embedded Logic

Register Definitions

Offset in core for bus CSR : 0x00026000

enc_pd_emul_2 Encoder/PD emulator
Register Name Byte Addr Offset Field Bits Type subtype Reset Description
CSR_ENC_PD_EMUL_2_IP_ID 0x0 32 Unique ID for this IP block
IP_NUMBER 7:0 c 0x12 IP identifier number
MFR_NUMBER 15:8 c 0xFF Manufacturer number
RESERVED 31:16 rsv 0 Reserved bits
CSR_ENC_PD_EMUL_2_IP_VER 0x4 32 IP Version
MINOR_NUMBER 7:0 c 0x00 Minor number
MAJOR_NUMBER 15:8 c 0x02 Major number
RESERVED 31:16 rsv 0 Reserved bits
CSR_ENC_PD_EMUL_2_OUT_ENABLE 0x8 16 TTL/RS422 Output Enable/Force output
TTL_PD_EN 0 w 0x0 TTL PD output enable
TTL_PH1_EN 1 w 0x0 TTL enc-phase-1 output enable
TTL_PH2_EN 2 w 0x0 TTL enc-phase-2 output enable
TTL_ZP_EN 3 w 0x0 TTL enc-zero-phase output enable
RS422_PD_EN 4 w 0x0 RS422 PD output enable
RS422_PH1_EN 5 w 0x0 RS422 enc-phase-1 output enable
RS422_PH2_EN 6 w 0x0 RS422 enc-phase-2 output enable
RS422_ZP_EN 7 w 0x0 RS422 enc-zero-phase output enable
TTL_PD_FH 8 w 0x0 TTL PD output force high
TTL_PH1_FH 9 w 0x0 TTL enc-phase-1 output force high
TTL_PH2_FH 10 w 0x0 TTL enc-phase-2 output force high
TTL_ZP_FH 11 w 0x0 TTL enc-zero-phase output force high
RS422_PD_FH 12 w 0x0 RS422 PD output force high
RS422_PH1_FH 13 w 0x0 RS422 enc-phase-1 output force high
RS422_PH2_FH 14 w 0x0 RS422 enc-phase-2 output force high
RS422_ZP_FH 15 w 0x0 RS422 enc-zero-phase output force high
CSR_ENC_PD_EMUL_2_OUT_STATUS 0xc 8 Reports the status of TTL and RS422 outputs
TTL_PD 0 r U TTL PD status
TTL_PH1 1 r U TTL enc-phase-1 status
TTL_PH2 2 r U TTL enc-phase-2 status
TTL_ZP 3 r U TTL enc-zp status
RS422_PD 4 r U RS422 PD status
RS422_PH1 5 r U RS422 enc-phase-1 status
RS422_PH2 6 r U RS422 enc-phase-2 status
RS422_ZP 7 r U RS422 enc-zp status
CSR_ENC_PD_EMUL_2_ENC_CTRL_W 0x10 6 Control the emulation of encoder signals
NCO_EN 0 w 0x0 enable the NCO increment
NCO_INIT 1 w0 0x0 force the NCO to the initial value
ENC_DIR 2 w 0x0 encoder/absolute position direction: 0 => positive, 1 => negative
SET_ABS_POS 3 w0 0x0 force the absolute position to the (programmable) initial value
MAX_PULSES_EN 4 w 0x0 0 => NCO free running, 1 => the NCO automatically stops after a specified number of absolute position increments
MAX_PULSES_START 5 w0 0x0 start the generation of a fixed number of absolute position increments
CSR_ENC_PD_EMUL_2_ENC_CTRL_R 0x14 32 Status
RESERVED0 5:0 rsv 0 Reserved
MAX_PULSES_DONE 6 r 0x0 signals the completion of the encoder/absolute position increments
RESERVED1 30:7 rsv 0 Reserved
SEQ_PRESENT 31 r 0x0 Set to 1 when the Sequencer is instantiated, 0 otherwise
CSR_ENC_PD_EMUL_2_ENC_NCO_INC 0x18 32 w 0x0 Encoder NCO increment: values in range 0 to 2147483648. Enc period will be 10ns * (2^32)/enc_nco_inc - e.g. increment of d20000 gives period ~2.15ms. increment of x8000000 gives the min period of 20ns (too fast for usage)
CSR_ENC_PD_EMUL_2_ENC_PULSE_NUM 0x1c 32 w 0x0 number of encoder/absolute position increments to be generated
CSR_ENC_PD_EMUL_2_ENC_ZP_PPR 0x20 16 w 0x0 Zero-Phase PPR (Pulse-Per-Revolution)
CSR_ENC_PD_EMUL_2_POS_INIT_LSB 0x24 32 w signed 0x0 Absolute Position Initial value, bits 31:0
CSR_ENC_PD_EMUL_2_POS_INIT_MSB 0x28 8 w signed 0x0 Absolute Position Initial value, bits 39:32
CSR_ENC_PD_EMUL_2_POS_STAT_LSB 0x2c 32 r signed 0x0 Absolute Position value, bits 31:0
CSR_ENC_PD_EMUL_2_POS_STAT_MSB 0x30 8 r signed 0x0 Absolute Position value, bits 39:32
CSR_ENC_PD_EMUL_2_PD_CTRL 0x34 3 Control the emulation of PD
PD_EN 0 w 0x0 enable the generation of PD events
PD_GEN 1 w0 0x0 issue a PD pulse
CLR_PD_CNT 2 w0 0x0 clear the value of the PD counter register
CSR_ENC_PD_EMUL_2_PD_PULSE_WIDTH 0x38 16 w 0x14 PD pulse-width [clock-cycles at 100 MHz]. The minimum value is 1.
CSR_ENC_PD_EMUL_2_PD_CNT 0x3c 24 r 0x0 PD pulse counter
CSR_ENC_PD_EMUL_2_SEQ_CTRL 0x40 25 sequencer control
SEQ_START_REQ 0 w0 0x0 sequencer start request
SEQ_EXT_TRIG 1 w0 0x0 sequencer external trigger
RESERVED 15:2 rsv 0 Reserved bits
SEQ_START_ADDR 24:16 w 0x0 sequencer start address

Register/field type key:

TypeDescription
cConstant, with value defined by "reset" attribute
rsvSame as constant, except no reset value and always 0. Can be mixed with write types.
wWrite register (and read—no write only type). Register defined in register block and reset to "reset" attribute value. Split into fields (if applicable) for signalling and output, where attribute associated with fields, not register.
wpWrite with pulse. Register is not declared in block, but write bus split into fields as output port signals, and a pulse generated on write to register address. Register reads back 0. The "reset" attribute is for documentation only, as set externally.
w0Same as w, but auto-clears to 0 (and thus always reads as 0). At output port, signal will go high for one cycle when bit is written with a 1 (no effect if written to a 0). No "reset" attribute, as must always be 0.
rRead only value. Input ports generated for each field (where applicable), and concatenated on returned read data bus.
rpSimilar to r, but a pulse generated on a read access to the register address to allow peripheral logic to update value. The "reset" attribute is for documentation only, as set externally.
rwpSimilar to wp, but also generates a (separate) pulse on a read access to the register
bitdefDefines the bits used in the read, set, clear registers
  
SubypeDescription
unsignedRegister/field is specified as an unsigned value.
signedRegister/field is specified as a signed value.
<blank>Register/field sign status is not explicitly defined and defaults to unsigned.

 


Copyright © 2024 Global Inkjet Systems. Generated by gen_htm.py —2024-10-30 09:43