-
Notifications
You must be signed in to change notification settings - Fork 0
/
CoolHeatSystem.v
40 lines (32 loc) · 1.24 KB
/
CoolHeatSystem.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*-- *******************************************************
-- Computer Architecture Course, Laboratory Sources
-- Amirkabir University of Technology (Tehran Polytechnic)
-- Department of Computer Engineering (CE-AUT)
-- https://ce[dot]aut[dot]ac[dot]ir
-- *******************************************************
-- All Rights reserved (C) 2019-2020
-- *******************************************************
-- Student ID :
-- Student Name:
-- Student Mail:
-- *******************************************************
-- Additional Comments:
--
--*/
/*-----------------------------------------------------------
--- Module Name: Cool Heat System
--- Description: Module3:
-----------------------------------------------------------*/
`timescale 1 ns/1 ns
module CoolHeatSystem (
input arst , // reset [asynch]
input clk , // clock [posedge]
input [7:0] speed , // speed [duty-cycle]
input [7:0] chs_conf , // degree [temprature]
output [3:0] chs_power , // power [cooler/heater]
output chs_mode , // model [heat=1/cool=0]
output pwm_data // data [output]
);
ModePower modePower(chs_conf,chs_power,chs_mode);
FanSpeed fanSpeed(arst,clk,speed,pwm_data);
endmodule