-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPassCheckUnit.v
More file actions
33 lines (29 loc) · 1.05 KB
/
PassCheckUnit.v
File metadata and controls
33 lines (29 loc) · 1.05 KB
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
/*-- *******************************************************
-- 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: Password Checker Unit
--- Description: Module7:
-----------------------------------------------------------*/
`timescale 1 ns/1 ns
module PassCheckUnit (
input [ 1:0] pass , // input [user password]
input [ 1:0] key , // input [system password]
output equal // output [(pass==key) : 1]
);
/* write your code here */
assign equal = (pass == key) ? 1'b1: 1'b0;
/* write your code here */
endmodule