forked from deoregaurav92/SystemVerilog_Coding_Practice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflipflop.sv
More file actions
24 lines (21 loc) · 665 Bytes
/
flipflop.sv
File metadata and controls
24 lines (21 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
///////////////////////////////////////////////////////////////////////////
// (c) Copyright 2013 Cadence Design Systems, Inc. All Rights Reserved.
//
// File name : flipflop.sv
// Title : Flipflop Module
// Project : SystemVerilog Training
// Created : 2013-4-8
// Description : Defines the Flipflop module
// Notes :
//
///////////////////////////////////////////////////////////////////////////
module flipflop (input logic clk, reset,
input logic [7:0] qin,
output logic [7:0] qout);
timeunit 1ns;
always @(posedge clk or posedge reset)
if (reset)
qout = '0;
else
qout = qin;
endmodule