-
Notifications
You must be signed in to change notification settings - Fork 0
/
flash_pkg.sv
executable file
·65 lines (36 loc) · 1.24 KB
/
flash_pkg.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/************************************************************************************************************************************************
* *
* FLASH MEMORY CONTROLLER PACKAGE * *
* *
************************************************************************************************************************************************/
package flash_pkg;
typedef enum bit [2:0] {program_page = 3'b001,
read_page = 3'b010,
erase = 3'b100,
reset = 3'b011,
read_id = 3'b101,
sys_reset = 3'b110,
stable = 3'b000
} operations;
operations op, exp_op, scr_op;
parameter TRUE = 1'b1;
parameter FALSE = 1'b0;
parameter SIGNAL_WIDTH=4;
parameter SB_DEPTH=24;
parameter LUT=3;
parameter PAGES_BITS = 4;
parameter BLOCK_BITS = 12;
parameter DEBUG = TRUE;
`include "tb_seq_item.svh"
`include "tb_sequencer.svh"
`include "tb_sequence.svh"
`include "tb_driver.svh"
`include "tb_monitor.svh"
`include "tb_agent.svh"
`include "tb_scoreboard.svh"
`include "tb_coverage.svh"
`include "tb_environment.svh"
`include "tb_test.svh"
//`include "tb_top.svh"
reg [7:0] temp_mem [0:2**BLOCK_BITS -1][0:2**PAGES_BITS - 1][0:2047];
endpackage : flash_pkg