forked from jeremiah-c-leary/vhdl-style-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrule_403_test_input.vhd
More file actions
45 lines (30 loc) · 902 Bytes
/
rule_403_test_input.vhd
File metadata and controls
45 lines (30 loc) · 902 Bytes
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
architecture RTL of FIFO is
begin
my_proc : process
-- These are passing
variable ret : my_type := (
data => (others => '-'),
valid => '0',
sop => '0',
eop => '0',
empty => (others => '0'),
error => (others => '0')
);
-- These are failing
variable ret : my_type := (data => (others => '-'), valid => '0', sop => '0', eop => '0', empty => (others => '0'), error => (others => '0'));
-- This is not an array and should not be "fixed"
variable d : my_type :=
(d2 xor to_stdulogic(gen2)) &
(d1 xor to_stdulogic(gen1));
variable new_phase : my_type := (not sig1) or
sig2 or
sig3;
-- Test functions/constant in array
variable data_concurrent : my_type :=
(
c_enum_list(ENUM_LITERAL_1) => 1,
others => 'X'
);
begin
end process;
end architecture RTL;