Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
df0a9106
Commit
df0a9106
authored
3 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
processed review comments
parent
7f50c364
No related branches found
No related tags found
1 merge request
!177
Resolve L2SDP-532
Pipeline
#22355
passed
3 years ago
Stage: simulation
Stage: synthesis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/io/fpga_sense/src/vhdl/fpga_sense.vhd
+5
-3
5 additions, 3 deletions
libraries/io/fpga_sense/src/vhdl/fpga_sense.vhd
with
5 additions
and
3 deletions
libraries/io/fpga_sense/src/vhdl/fpga_sense.vhd
+
5
−
3
View file @
df0a9106
...
@@ -105,6 +105,8 @@ BEGIN
...
@@ -105,6 +105,8 @@ BEGIN
tempout
=>
temp_data
--: OUT STD_LOGIC_VECTOR(9 DOWNTO 0)
tempout
=>
temp_data
--: OUT STD_LOGIC_VECTOR(9 DOWNTO 0)
);
);
-- The eoc signal goes high for one clock cycle of the 1-MHz internal oscillator clock,
-- indicating end of conversion. You can latch the data on tempout at the falling edge of eoc.
PROCESS
(
eoc
,
mm_rst
)
PROCESS
(
eoc
,
mm_rst
)
BEGIN
BEGIN
IF
mm_rst
=
'1'
THEN
IF
mm_rst
=
'1'
THEN
...
@@ -117,8 +119,8 @@ BEGIN
...
@@ -117,8 +119,8 @@ BEGIN
END
GENERATE
;
END
GENERATE
;
no_tech_fpga_temp_sens
:
IF
g_sim
=
TRUE
GENERATE
no_tech_fpga_temp_sens
:
IF
g_sim
=
TRUE
GENERATE
-- temp = (
708
* adc)/1024 - 2
73
=> adc = (temp + 2
73
)*1024/
708
-- temp = (
693
* adc)/1024 - 2
65
=> adc = (temp + 2
65
)*1024/
693
temp_data
<=
TO_UVEC
(
4
60
,
temp_data
'LENGTH
);
-- choose temp = 45 degrees so adc temp_data = 4
60
temp_data
<=
TO_UVEC
(
4
58
,
temp_data
'LENGTH
);
-- choose temp = 45 degrees so adc temp_data = 4
58
mm_reg_temp_data
<=
RESIZE_UVEC
(
temp_data
,
c_mem_reg_temp_dat_w
);
mm_reg_temp_data
<=
RESIZE_UVEC
(
temp_data
,
c_mem_reg_temp_dat_w
);
END
GENERATE
;
END
GENERATE
;
...
@@ -190,7 +192,7 @@ BEGIN
...
@@ -190,7 +192,7 @@ BEGIN
start_sense_mm_d2
<=
start_sense_mm_d1
;
start_sense_mm_d2
<=
start_sense_mm_d1
;
if
start_sense_mm_d1
=
'1'
and
start_sense_mm_d2
=
'0'
then
if
start_sense_mm_d1
=
'1'
and
start_sense_mm_d2
=
'0'
then
controller_csr_write
<=
'1'
;
controller_csr_write
<=
'1'
;
else
else
controller_csr_write
<=
'0'
;
controller_csr_write
<=
'0'
;
end
if
;
end
if
;
END
IF
;
END
IF
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment