-
Notifications
You must be signed in to change notification settings - Fork 0
/
LightingSystem.v
36 lines (32 loc) · 1.33 KB
/
LightingSystem.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
/*-- *******************************************************
-- 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: Lighting System
--- Description: Module4:
-----------------------------------------------------------*/
`timescale 1 ns/1 ns
module LightingSystem (
input [ 3:0] tcode , // time code [table2 time code ]
input [ 3:0] ulight , // user light [light degree mode ]
input [ 3:0] lenght , // room length [square room lenght ]
output [ 3:0] wshade , // shade level [window shade level ]
output [ 3:0] lightnum , // number on [number of active ]
output [15:0] lightstate // lights state [lights state decode]
);
WindowShadeDegree wsd(tcode , ulight , wshade ) ;
ActiveLamps as(tcode , ulight , lenght ,lightnum ) ;
LampState ls(lightnum , lightstate ) ;
endmodule