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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [inout_port/] [control_datain.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_datain`
2
--              date : Mon Aug 27 03:14:20 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY control_datain IS
8
  PORT (
9
  clk : in BIT; -- clk
10
  rst : in BIT; -- rst
11
  dt_sended : in BIT;   -- dt_sended
12
  emp_buf : in BIT;     -- emp_buf
13
  en_bufin : out BIT;   -- en_bufin
14
  req_dt : out BIT;     -- req_dt
15
  dt_ready : out BIT;   -- dt_ready
16
  n_block : out BIT;    -- n_block
17
  vdd : in BIT; -- vdd
18
  vss : in BIT  -- vss
19
  );
20
END control_datain;
21
 
22
 
23
-- Architecture Declaration
24
 
25
ARCHITECTURE VBE OF control_datain 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_s2 OR next_state_s3);
41
  next_state(1) <= next_state_s4;
42
  next_state(2) <= (next_state_s1 OR next_state_s3);
43
  next_state_s0 <= ((current_state_s0 AND NOT(dt_sended)) OR (
44
current_state_s4 AND emp_buf));
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 dt_sended);
48
  current_state_s1 <= (current_state(2) AND NOT(current_state(0)));
49
  next_state_s2 <= (current_state_s1 OR (current_state_s2 AND NOT(
50
dt_sended)));
51
  current_state_s2 <= (NOT(current_state(2)) AND current_state(0));
52
  next_state_s3 <= (current_state_s2 AND dt_sended);
53
  current_state_s3 <= (current_state(2) AND current_state(0));
54
  next_state_s4 <= (current_state_s3 OR (current_state_s4 AND NOT(
55
emp_buf)));
56
  current_state_s4 <= (NOT(current_state(2)) AND current_state(1));
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
dt_ready <= ((current_state_s3 AND NOT(rst)) OR (
74
current_state_s4 AND NOT(rst) AND NOT(emp_buf)));
75
 
76
req_dt <= (rst OR (current_state_s0 AND NOT(rst) AND NOT(
77
dt_sended)) OR (current_state_s1 AND NOT(rst)) OR (
78
current_state_s2 AND NOT(rst) AND NOT(dt_sended)) OR (
79
current_state_s4 AND NOT(rst) AND emp_buf));
80
 
81
en_bufin <= ((current_state_s0 AND NOT(rst) AND dt_sended) OR
82
 (current_state_s2 AND NOT(rst) AND dt_sended));
83
END;

powered by: WebSVN 2.1.0

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