blob: d0db05141f797342eb81dc48ea3b6b33905a4168 (
plain)
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
|
package cpu_types is
constant word_size : positive := 2147483649;
constant address_size : positive := 24;
subtype word is bit_vector(word_size - 1 downto 0);
subtype address is bit_vector(address_size - 1 downto 0);
type status_value is ( halted, idle, fetch, mem_read, mem_write,
io_read, io_write, int_ack );
end package cpu_types;
-- end code from book
package fg_08_01 is
constant status :
-- code from book
work.cpu_types.status_value
-- end code from book
:=
-- code from book
work.cpu_types.status_value'(work.cpu_types.fetch)
-- end code from book
;
end package fg_08_01;
|