Skip to content
Snippets Groups Projects
Commit 337045b7 authored by Reinier van der Walle's avatar Reinier van der Walle
Browse files

decreased design_note field from 52B to 48B to fit the 32 word system

info
parent 04a2b26a
No related branches found
No related tags found
1 merge request!221decreased design_note field from 52B to 48B to fit the 32 word system
Pipeline #26496 failed
...@@ -78,7 +78,7 @@ ARCHITECTURE rtl OF unb2b_board_system_info_reg IS ...@@ -78,7 +78,7 @@ ARCHITECTURE rtl OF unb2b_board_system_info_reg IS
CONSTANT c_nof_design_name_regs : NATURAL := 13; -- design_name CONSTANT c_nof_design_name_regs : NATURAL := 13; -- design_name
CONSTANT c_nof_stamp_regs : NATURAL := 2; -- date, time CONSTANT c_nof_stamp_regs : NATURAL := 2; -- date, time
CONSTANT c_nof_revision_id_regs : NATURAL := 3; -- revision id, commit hash or id (hash: first 9 chars of the 40chars commit hash) CONSTANT c_nof_revision_id_regs : NATURAL := 3; -- revision id, commit hash or id (hash: first 9 chars of the 40chars commit hash)
CONSTANT c_nof_design_note_regs : NATURAL := 13; -- note CONSTANT c_nof_design_note_regs : NATURAL := 12; -- note
CONSTANT c_info_reg : NATURAL := 0; CONSTANT c_info_reg : NATURAL := 0;
CONSTANT c_use_phy_reg : NATURAL := 1; CONSTANT c_use_phy_reg : NATURAL := 1;
...@@ -87,7 +87,7 @@ ARCHITECTURE rtl OF unb2b_board_system_info_reg IS ...@@ -87,7 +87,7 @@ ARCHITECTURE rtl OF unb2b_board_system_info_reg IS
CONSTANT c_stamp_time_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + 1; CONSTANT c_stamp_time_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + 1;
CONSTANT c_revision_id_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs; CONSTANT c_revision_id_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs;
CONSTANT c_design_note_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs; CONSTANT c_design_note_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs;
CONSTANT c_nof_regs : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs + c_nof_design_note_regs; CONSTANT c_nof_regs : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs + c_nof_design_note_regs; -- = 2+13+2+3+12 = 32
CONSTANT c_mm_reg : t_c_mem := (latency => 1, CONSTANT c_mm_reg : t_c_mem := (latency => 1,
adr_w => ceil_log2(c_nof_regs), adr_w => ceil_log2(c_nof_regs),
dat_w => c_word_w, -- Use MM bus data width = c_word_w = 32 for all MM registers dat_w => c_word_w, -- Use MM bus data width = c_word_w = 32 for all MM registers
......
...@@ -130,7 +130,7 @@ peripherals: ...@@ -130,7 +130,7 @@ peripherals:
access_mode: RO access_mode: RO
- - field_name: design_note - - field_name: design_note
field_description: "FPGA FW design note string." field_description: "FPGA FW design note string."
number_of_fields: 52 number_of_fields: 48
address_offset: 0x50 address_offset: 0x50
mm_width: 32 mm_width: 32
user_width: 8 user_width: 8
......
...@@ -78,7 +78,7 @@ ARCHITECTURE rtl OF unb2c_board_system_info_reg IS ...@@ -78,7 +78,7 @@ ARCHITECTURE rtl OF unb2c_board_system_info_reg IS
CONSTANT c_nof_design_name_regs : NATURAL := 13; -- design_name CONSTANT c_nof_design_name_regs : NATURAL := 13; -- design_name
CONSTANT c_nof_stamp_regs : NATURAL := 2; -- date, time CONSTANT c_nof_stamp_regs : NATURAL := 2; -- date, time
CONSTANT c_nof_revision_id_regs : NATURAL := 3; -- revision id, commit hash or id (hash: first 9 chars of the 40chars commit hash) CONSTANT c_nof_revision_id_regs : NATURAL := 3; -- revision id, commit hash or id (hash: first 9 chars of the 40chars commit hash)
CONSTANT c_nof_design_note_regs : NATURAL := 13; -- note CONSTANT c_nof_design_note_regs : NATURAL := 12; -- note
CONSTANT c_info_reg : NATURAL := 0; CONSTANT c_info_reg : NATURAL := 0;
CONSTANT c_use_phy_reg : NATURAL := 1; CONSTANT c_use_phy_reg : NATURAL := 1;
...@@ -87,7 +87,7 @@ ARCHITECTURE rtl OF unb2c_board_system_info_reg IS ...@@ -87,7 +87,7 @@ ARCHITECTURE rtl OF unb2c_board_system_info_reg IS
CONSTANT c_stamp_time_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + 1; CONSTANT c_stamp_time_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + 1;
CONSTANT c_revision_id_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs; CONSTANT c_revision_id_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs;
CONSTANT c_design_note_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs; CONSTANT c_design_note_offset : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs;
CONSTANT c_nof_regs : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs + c_nof_design_note_regs; CONSTANT c_nof_regs : NATURAL := c_nof_fixed_regs + c_nof_design_name_regs + c_nof_stamp_regs + c_nof_revision_id_regs + c_nof_design_note_regs; -- = 2+13+2+3+12 = 32
CONSTANT c_mm_reg : t_c_mem := (latency => 1, CONSTANT c_mm_reg : t_c_mem := (latency => 1,
adr_w => ceil_log2(c_nof_regs), adr_w => ceil_log2(c_nof_regs),
dat_w => c_word_w, -- Use MM bus data width = c_word_w = 32 for all MM registers dat_w => c_word_w, -- Use MM bus data width = c_word_w = 32 for all MM registers
......
...@@ -130,7 +130,7 @@ peripherals: ...@@ -130,7 +130,7 @@ peripherals:
access_mode: RO access_mode: RO
- - field_name: design_note - - field_name: design_note
field_description: "FPGA FW design note string." field_description: "FPGA FW design note string."
number_of_fields: 52 number_of_fields: 48
address_offset: 0x50 address_offset: 0x50
mm_width: 32 mm_width: 32
user_width: 8 user_width: 8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment