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
63966715
Commit
63966715
authored
9 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
connected the fpga_temp_sensor to common_reg_r_w_dc, available for MM
readout
parent
18c1d462
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/io/fpga_temp_sens/src/vhdl/fpga_temp_sens.vhd
+14
-27
14 additions, 27 deletions
libraries/io/fpga_temp_sens/src/vhdl/fpga_temp_sens.vhd
with
14 additions
and
27 deletions
libraries/io/fpga_temp_sens/src/vhdl/fpga_temp_sens.vhd
+
14
−
27
View file @
63966715
...
...
@@ -76,43 +76,30 @@ BEGIN
reset
=>
mm_rst
,
tempout
=>
temp_data
--: OUT STD_LOGIC_VECTOR(9 DOWNTO 0)
);
PROCESS
(
eoc
,
mm_rst
)
BEGIN
IF
mm_rst
=
'1'
THEN
mm_reg_temp_data
<=
(
OTHERS
=>
'0'
);
ELSIF
falling_edge
(
eoc
)
THEN
mm_reg_temp_data
<=
RESIZE_UVEC
(
temp_data
,
c_mem_reg_dat_w
);
END
IF
;
END
PROCESS
;
END
GENERATE
;
gen_no_tech_fpga_temp_sens
:
IF
g_sim
=
TRUE
GENERATE
temp_data
<=
RESIZE_UVEC
(
x"45"
,
10
);
mm_reg_temp_data
<=
RESIZE_UVEC
(
temp_data
,
c_mem_reg_dat_w
);
END
GENERATE
;
--
---- leon: work this out
--ENTITY register32 IS PORT(
-- d : IN STD_LOGIC_VECTOR(31 DOWNTO 0);
-- ld : IN STD_LOGIC; -- load/enable.
-- clr : IN STD_LOGIC; -- async. clear.
-- clk : IN STD_LOGIC; -- clock.
-- q : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) -- output
--);
--END register32;
--
--
--
-- process(clk, clr)
-- begin
-- if clr = '1' then
-- q <= x"00000000";
-- elsif rising_edge(clk) then
-- if ld = '1' then
-- q <= d;
-- end if;
-- end if;
-- end process;
---- leon: work this out
--
mm_reg_temp_data
<=
RESIZE_UVEC
(
temp_data
,
c_mem_reg_dat_w
);
u_reg_map
:
ENTITY
common_lib
.
common_reg_r_w_dc
GENERIC
MAP
(
...
...
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