blob: 0868a1164988bf00bcfa1158438b7d1e2627812f [file] [log] [blame]
// Note in caravel, 0x300X_XXXX only come to user interface
// So, using wb_host bank select we have changing MSB address [31:16] = 0x1000
//
`define ADDR_SPACE_WBHOST 32'h3008_0000
`define ADDR_SPACE_LBIST 32'h300C_0000
`define ADDR_SPACE_GLBL 32'h3000_0000
`define ADDR_SPACE_MBIST1 32'h3000_1000
`define ADDR_SPACE_MBIST2 32'h3000_2000
`define ADDR_SPACE_MBIST3 32'h3000_3000
`define ADDR_SPACE_MBIST4 32'h3000_4000
`define ADDR_SPACE_MBIST5 32'h3000_5000
`define ADDR_SPACE_MBIST6 32'h3000_6000
`define ADDR_SPACE_MBIST7 32'h3000_7000
`define ADDR_SPACE_MBIST8 32'h3000_8000
//--------------------------------------------------
// WB Host Register
//--------------------------------------------------
`define WBHOST_GLBL_CFG 8'h00 // reg_0 - Global Config
`define WBHOST_BANK_SEL 8'h04 // reg_1 - Bank Select
`define WBHOST_CLK_CTRL1 8'h08 // reg_2 - Clock Control-1
`define WBHOST_CLK_CTRL2 8'h0C // reg_3 - Clock Control-2
//--------------------------------------------------
// LBIST Register
//--------------------------------------------------
`define LBIST_CTRL1 8'h00
`define LBIST_CTRL2 8'h04
`define LBIST_SIG 8'h08
//-------------------------------------------------
// GLBL Register
//-------------------------------------------------
`define GLBL_BIST_CTRL1 'h08
`define GLBL_BIST_CTRL2 'h0C
`define GLBL_BIST_STAT1 'h10
`define GLBL_BIST_STAT2 'h14
`define GLBL_BIST_SWDATA 'h18
`define GLBL_BIST_SRDATA 'h1C
`define GLBL_BIST_SPDATA 'h20
`define GLBL_BIST_SOFT1 'h24
`define GLBL_BIST_SOFT2 'h28
`define GLBL_BIST_SOFT3 'h2C