Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
euro-adc-65m-14b-40cha-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
eurocard
euro-adc-65m-14b-40cha
euro-adc-65m-14b-40cha-gw
Commits
cad9c63f
Commit
cad9c63f
authored
Jun 06, 2017
by
Dave Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in pulse generator
parent
4f9dc666
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
sc_fake.xml
components/solid/addr_table/sc_fake.xml
+1
-1
sc_fake.vhd
components/solid/firmware/hdl/sc_fake.vhd
+4
-3
No files found.
components/solid/addr_table/sc_fake.xml
View file @
cad9c63f
...
...
@@ -13,7 +13,7 @@
<node
id=
"samp"
mask=
"0xff000000"
/>
</node>
<node
id=
"size"
address=
"0x1"
>
<node
id=
"
amp
l"
mask=
"0x3ff"
/>
<node
id=
"
leve
l"
mask=
"0x3ff"
/>
<node
id=
"ped"
mask=
"0x3ff0000"
/>
</node>
</node>
...
...
components/solid/firmware/hdl/sc_fake.vhd
View file @
cad9c63f
...
...
@@ -38,7 +38,7 @@ architecture rtl of sc_fake is
signal
params
:
ipb_reg_v
(
1
downto
0
);
signal
params_freq_div
:
std_logic_vector
(
3
downto
0
);
signal
params_n
,
params_gap
,
params_samp
:
std_logic_vector
(
7
downto
0
);
signal
params_
amp
l
,
params_ped
:
std_logic_vector
(
13
downto
0
);
signal
params_
leve
l
,
params_ped
:
std_logic_vector
(
13
downto
0
);
signal
mask
:
std_logic_vector
(
15
downto
0
);
signal
pulse
:
std_logic_vector
(
13
downto
0
);
signal
p
,
go
,
samp
,
pend
,
act
,
done
:
std_logic
;
...
...
@@ -100,7 +100,7 @@ begin
params_n
<=
params
(
0
)(
15
downto
8
);
params_gap
<=
params
(
0
)(
23
downto
16
);
params_samp
<=
params
(
0
)(
31
downto
24
);
params_
amp
l
<=
params
(
1
)(
13
downto
0
);
params_
leve
l
<=
params
(
1
)(
13
downto
0
);
params_ped
<=
params
(
1
)(
29
downto
16
);
-- Trigger
...
...
@@ -129,6 +129,7 @@ begin
if
rst40
=
'1'
or
done
=
'1'
then
pcnt
<=
(
others
=>
'0'
);
gcnt
<=
(
others
=>
'0'
);
p
<=
'0'
;
elsif
act
=
'1'
then
if
gcnt
=
0
then
gcnt
<=
unsigned
(
params_gap
);
...
...
@@ -146,7 +147,7 @@ begin
-- Output
pulse
<=
std_logic_vector
(
unsigned
(
params_ped
)
+
unsigned
(
params_ampl
))
when
p
=
'1'
else
params_ped
;
pulse
<=
params_level
when
p
=
'1'
else
params_ped
;
fake
<=
rand
(
13
downto
0
)
when
ctrl_mode
=
'0'
else
pulse
;
end
rtl
;
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