forked from tgingold-cern/cheby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests - Add test for large preset values, regenerate testfiles
- Loading branch information
1 parent
2e2e009
commit 08ead10
Showing
16 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#define CONST_RANGE_SIZE 20 | ||
#define ADDR_CONST_RANGE_LARGE_VAL_0 0x0UL | ||
#define CONST_RANGE_LARGE_VAL_0_PRESET 0xf38243bbUL | ||
#define ADDR_CONST_RANGE_LARGE_VAL_1 0x4UL | ||
#define CONST_RANGE_LARGE_VAL_1_PRESET 0xfffffff7UL | ||
#define ADDR_CONST_RANGE_SUPER_LARGE_VAL 0x8UL | ||
#define CONST_RANGE_SUPER_LARGE_VAL_PRESET 0x818734fa9b1e0cf4ULL | ||
#define ADDR_CONST_RANGE_SMALL_VAL 0x10UL | ||
#define CONST_RANGE_SMALL_VAL_PRESET 0x1UL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package const_range_Consts; | ||
localparam CONST_RANGE_SIZE = 20; | ||
localparam ADDR_CONST_RANGE_LARGE_VAL_0 = 'h0; | ||
localparam CONST_RANGE_LARGE_VAL_0_PRESET = 32'hf38243bb; | ||
localparam ADDR_CONST_RANGE_LARGE_VAL_1 = 'h4; | ||
localparam CONST_RANGE_LARGE_VAL_1_PRESET = 32'hfffffff7; | ||
localparam ADDR_CONST_RANGE_SUPER_LARGE_VAL = 'h8; | ||
localparam CONST_RANGE_SUPER_LARGE_VAL_PRESET = 64'h818734fa9b1e0cf4; | ||
localparam ADDR_CONST_RANGE_SMALL_VAL = 'h10; | ||
localparam CONST_RANGE_SMALL_VAL_PRESET = 32'h1; | ||
endpackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
`define CONST_RANGE_SIZE 20 | ||
`define ADDR_CONST_RANGE_LARGE_VAL_0 'h0 | ||
`define CONST_RANGE_LARGE_VAL_0_PRESET 'hf38243bb | ||
`define ADDR_CONST_RANGE_LARGE_VAL_1 'h4 | ||
`define CONST_RANGE_LARGE_VAL_1_PRESET 'hfffffff7 | ||
`define ADDR_CONST_RANGE_SUPER_LARGE_VAL 'h8 | ||
`define CONST_RANGE_SUPER_LARGE_VAL_PRESET 'h818734fa9b1e0cf4 | ||
`define ADDR_CONST_RANGE_SMALL_VAL 'h10 | ||
`define CONST_RANGE_SMALL_VAL_PRESET 'h1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
library ieee; | ||
use ieee.std_logic_1164.all; | ||
|
||
package const_range_Consts is | ||
constant CONST_RANGE_SIZE : Natural := 20; | ||
constant ADDR_CONST_RANGE_LARGE_VAL_0 : Natural := 16#0#; | ||
constant CONST_RANGE_LARGE_VAL_0_PRESET : std_logic_vector(32-1 downto 0) := x"f38243bb"; | ||
constant ADDR_CONST_RANGE_LARGE_VAL_1 : Natural := 16#4#; | ||
constant CONST_RANGE_LARGE_VAL_1_PRESET : std_logic_vector(32-1 downto 0) := x"fffffff7"; | ||
constant ADDR_CONST_RANGE_SUPER_LARGE_VAL : Natural := 16#8#; | ||
constant CONST_RANGE_SUPER_LARGE_VAL_PRESET : std_logic_vector(64-1 downto 0) := x"818734fa9b1e0cf4"; | ||
constant ADDR_CONST_RANGE_SMALL_VAL : Natural := 16#10#; | ||
constant CONST_RANGE_SMALL_VAL_PRESET : std_logic_vector(32-1 downto 0) := x"00000001"; | ||
end package const_range_Consts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
library ieee; | ||
use ieee.std_logic_1164.all; | ||
|
||
package const_range_consts_pkg is | ||
constant c_CONST_RANGE_SIZE : Natural := 20; | ||
constant c_CONST_RANGE_LARGE_VAL_0_ADDR : Natural := 16#0#; | ||
constant CONST_RANGE_LARGE_VAL_0_PRESET : std_logic_vector(32-1 downto 0) := x"f38243bb"; | ||
constant c_CONST_RANGE_LARGE_VAL_1_ADDR : Natural := 16#4#; | ||
constant CONST_RANGE_LARGE_VAL_1_PRESET : std_logic_vector(32-1 downto 0) := x"fffffff7"; | ||
constant c_CONST_RANGE_SUPER_LARGE_VAL_ADDR : Natural := 16#8#; | ||
constant CONST_RANGE_SUPER_LARGE_VAL_PRESET : std_logic_vector(64-1 downto 0) := x"818734fa9b1e0cf4"; | ||
constant c_CONST_RANGE_SMALL_VAL_ADDR : Natural := 16#10#; | ||
constant CONST_RANGE_SMALL_VAL_PRESET : std_logic_vector(32-1 downto 0) := x"00000001"; | ||
end package const_range_consts_pkg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
memory-map: | ||
bus: apb-32 | ||
name: const_range | ||
x-hdl: | ||
pipeline: rd-out | ||
bus-error: True | ||
wmask: True | ||
description: 'Register with 32-bit wide preset values.' | ||
children: | ||
- reg: | ||
name: large_val_0 | ||
width: 32 | ||
preset: 0xf38243bb | ||
access: rw | ||
- reg: | ||
name: large_val_1 | ||
width: 32 | ||
preset: 4294967287 | ||
access: rw | ||
- reg: | ||
name: super_large_val | ||
width: 64 | ||
preset: 0x818734fa9b1e0cf4 | ||
access: rw | ||
- reg: | ||
name: small_val | ||
width: 32 | ||
preset: 0x1 | ||
access: rw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters