Skip to content
Snippets Groups Projects
Commit 809b7372 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Choose temp = 45 degrees so adc temp_data = 460.

parent 013a6db6
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,8 @@ BEGIN ...@@ -91,7 +91,8 @@ BEGIN
gen_no_tech_fpga_temp_sens: IF g_sim=TRUE GENERATE gen_no_tech_fpga_temp_sens: IF g_sim=TRUE GENERATE
temp_data <= RESIZE_UVEC(x"45",10); -- temp = (708 * adc)/1024 - 273 => adc = (temp + 273)*1024/708
temp_data <= TO_UVEC(460, temp_data'LENGTH); -- choose temp = 45 degrees so adc temp_data = 460
mm_reg_temp_data <= RESIZE_UVEC(temp_data,c_mem_reg_dat_w); mm_reg_temp_data <= RESIZE_UVEC(temp_data,c_mem_reg_dat_w);
END GENERATE; END GENERATE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment