Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
wr2rf-vme
Commits
483953bb
Commit
483953bb
authored
Apr 23, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtuCore: simplify HDL.
parent
93d483df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
vtuCore.vhd
dependencies/vtu/rtl/vtuCore.vhd
+7
-19
No files found.
dependencies/vtu/rtl/vtuCore.vhd
View file @
483953bb
...
...
@@ -1222,13 +1222,11 @@ architecture vtuCore of vtuCore is
signal
wrongValue
:
std_logic
;
signal
SwitchHTeffective_n
:
std_logic
;
signal
ClkValueSwitch_n
:
std_logic
;
signal
CZero
:
std_logic_vector
(
63
downto
0
);
signal
SyncLessEna
:
std_logic
;
signal
DataOutLowFreq
:
std_logic_vector
(
7
downto
0
);
signal
DataIn_2
:
std_logic_vector
(
7
downto
0
);
signal
Shifter2Ena
:
std_logic
;
signal
DataInHTSyncLess
:
std_logic_vector
(
7
downto
0
);
signal
AllOneOut
:
std_logic_vector
(
7
downto
0
);
signal
WindowDone
:
std_logic
;
signal
wValueOne_seq
:
std_logic
;
signal
BCoarseZero
:
std_logic
;
...
...
@@ -1270,7 +1268,6 @@ architecture vtuCore of vtuCore is
signal
DataOutHTSyncLess
:
std_logic_vector
(
7
downto
0
);
signal
htValuePlusOne
:
std_logic_vector
(
63
downto
0
);
signal
SyncLessOperationMode
:
std_logic
;
signal
AllZeroOut
:
std_logic_vector
(
7
downto
0
);
signal
Start_i
:
std_logic
;
signal
Mem_RdDataZero
:
std_logic_vector
(
7
downto
0
)
:
=
(
others
=>
'0'
);
signal
Run_seq
:
std_logic
;
...
...
@@ -1285,7 +1282,6 @@ architecture vtuCore of vtuCore is
signal
RunPlayMem
:
std_logic
;
signal
PlayingMem
:
std_logic
;
signal
Stop_seq
:
std_logic
;
signal
SyncLessStartData
:
std_logic_vector
(
7
downto
0
);
signal
Start_seq
:
std_logic
;
signal
DataOut_1
:
std_logic_vector
(
7
downto
0
);
signal
SetPlayingMem
:
std_logic
;
...
...
@@ -1571,8 +1567,6 @@ begin
end
if
;
end
process
;
CZero
(
63
downto
0
)
<=
(
others
=>
'0'
);
WindowDone_seq
<=
WindowDone
and
(
not
InfiniteWindow
);
counterEnable
<=
(
OE_1
or
OE_2
)
and
Run_seq
;
...
...
@@ -1581,18 +1575,16 @@ begin
InfiniteWindow
<=
InfiniteWindowMode
or
LowFreqGenerationMode
;
process
(
DataOutHTSyncLess
,
SyncLessStartData
,
SetStartData
)
process
(
DataOutHTSyncLess
,
SetStartData
)
begin
case
SetStartData
is
when
'0'
=>
DataInHTSyncLess
<=
DataOutHTSyncLess
;
when
others
=>
DataInHTSyncLess
<=
SyncLessStartData
;
DataInHTSyncLess
<=
x"01"
;
end
case
;
end
process
;
SyncLessStartData
(
7
downto
0
)
<=
X"01"
;
StartSyncLess
<=
Start
and
SyncLessOperationMode
;
SyncLessDisabled
<=
not
SyncLessEna
;
...
...
@@ -1615,13 +1607,13 @@ begin
or
DataOut_seq
(
4
)
or
DataOut_seq
(
3
)
or
DataOut_seq
(
2
)
or
DataOut_seq
(
1
)
or
DataOut_seq
(
0
);
process
(
AllZeroOut
,
AllOneOut
,
ClkValueSwitch
)
process
(
ClkValueSwitch
)
begin
case
ClkValueSwitch
is
when
'0'
=>
DataAllEqual
(
7
downto
0
)
<=
AllZeroOut
(
7
downto
0
);
DataAllEqual
<=
(
others
=>
'0'
);
when
others
=>
DataAllEqual
(
7
downto
0
)
<=
AllOneOut
(
7
downto
0
);
DataAllEqual
<=
(
others
=>
'1'
);
end
case
;
end
process
;
...
...
@@ -1629,16 +1621,12 @@ begin
begin
case
FilledMuxSel
is
when
'0'
=>
DataOutLowFreq
(
7
downto
0
)
<=
DataAllEqual
(
7
downto
0
)
;
DataOutLowFreq
<=
DataAllEqual
;
when
others
=>
DataOutLowFreq
(
7
downto
0
)
<=
DataFilled
(
7
downto
0
)
;
DataOutLowFreq
<=
DataFilled
;
end
case
;
end
process
;
AllZeroOut
(
7
downto
0
)
<=
(
others
=>
'0'
);
AllOneOut
(
7
downto
0
)
<=
(
others
=>
'1'
);
-- Fill data with ones or zeros after one when DataOutPulse='1'
process
(
DataOut_seq
,
DataOutPulse
,
ClkValueSwitch
)
begin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment