OpenCores
URL https://opencores.org/ocsvn/idea/idea/trunk

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [inout_port/] [control_dataout.vbe] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
-- VHDL data flow description generated from `control_dataout`
2
--              date : Mon Aug 27 07:31:43 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY control_dataout IS
8
  PORT (
9
  clk : in BIT; -- clk
10
  rst : in BIT; -- rst
11
  cp_ready : in BIT;    -- cp_ready
12
  emp_bufout : in BIT;  -- emp_bufout
13
  en_bufout : out BIT;  -- en_bufout
14
  req_cp : out BIT;     -- req_cp
15
  cp_sended : out BIT;  -- cp_sended
16
  n_block : out BIT;    -- n_block
17
  vdd : in BIT; -- vdd
18
  vss : in BIT  -- vss
19
  );
20
END control_dataout;
21
 
22
 
23
-- Architecture Declaration
24
 
25
ARCHITECTURE VBE OF control_dataout IS
26
  SIGNAL current_state : REG_VECTOR(2 DOWNTO 0) REGISTER;       -- current_state
27
  SIGNAL current_state_s4 : BIT;                -- current_state_s4
28
  SIGNAL next_state_s4 : BIT;           -- next_state_s4
29
  SIGNAL current_state_s3 : BIT;                -- current_state_s3
30
  SIGNAL next_state_s3 : BIT;           -- next_state_s3
31
  SIGNAL current_state_s2 : BIT;                -- current_state_s2
32
  SIGNAL next_state_s2 : BIT;           -- next_state_s2
33
  SIGNAL current_state_s1 : BIT;                -- current_state_s1
34
  SIGNAL next_state_s1 : BIT;           -- next_state_s1
35
  SIGNAL current_state_s0 : BIT;                -- current_state_s0
36
  SIGNAL next_state_s0 : BIT;           -- next_state_s0
37
  SIGNAL next_state : BIT_VECTOR(2 DOWNTO 0);   -- next_state
38
 
39
BEGIN
40
  next_state(0) <= next_state_s4;
41
  next_state(1) <= (next_state_s2 OR next_state_s3);
42
  next_state(2) <= (next_state_s1 OR next_state_s3);
43
  next_state_s0 <= ((current_state_s0 AND NOT(cp_ready)) OR (
44
current_state_s4 AND emp_bufout));
45
  current_state_s0 <= (NOT(current_state(2)) AND NOT(current_state(1))
46
AND NOT(current_state(0)));
47
  next_state_s1 <= (current_state_s0 AND cp_ready);
48
  current_state_s1 <= (current_state(2) AND NOT(current_state(1)));
49
  next_state_s2 <= (current_state_s1 OR (current_state_s2 AND NOT(
50
emp_bufout)));
51
  current_state_s2 <= (NOT(current_state(2)) AND current_state(1));
52
  next_state_s3 <= (current_state_s2 AND emp_bufout);
53
  current_state_s3 <= (current_state(2) AND current_state(1));
54
  next_state_s4 <= (current_state_s3 OR (current_state_s4 AND NOT(
55
emp_bufout)));
56
  current_state_s4 <= current_state(0);
57
  label0 : BLOCK ((NOT((clk'STABLE)) AND clk) = '1')
58
  BEGIN
59
    current_state(0) <= GUARDED (next_state(0) AND NOT(rst));
60
  END BLOCK label0;
61
  label1 : BLOCK ((NOT((clk'STABLE)) AND clk) = '1')
62
  BEGIN
63
    current_state(1) <= GUARDED (next_state(1) AND NOT(rst));
64
  END BLOCK label1;
65
  label2 : BLOCK ((NOT((clk'STABLE)) AND clk) = '1')
66
  BEGIN
67
    current_state(2) <= GUARDED (next_state(2) AND NOT(rst));
68
  END BLOCK label2;
69
 
70
n_block <= ((current_state_s1 AND NOT(rst)) OR (
71
current_state_s2 AND NOT(rst)));
72
 
73
cp_sended <= NOT(rst OR (current_state_s0 AND NOT(rst)) OR (
74
current_state_s2 AND NOT(rst) AND emp_bufout) OR (
75
current_state_s4 AND NOT(rst) AND emp_bufout));
76
 
77
req_cp <= (rst OR (current_state_s0 AND NOT(rst) AND NOT(
78
cp_ready)) OR (current_state_s4 AND NOT(rst) AND
79
emp_bufout));
80
 
81
en_bufout <= ((current_state_s0 AND NOT(rst) AND cp_ready) OR
82
(current_state_s2 AND NOT(rst) AND emp_bufout));
83
END;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.