OpenCores
URL https://opencores.org/ocsvn/embedded_risc/embedded_risc/trunk

Subversion Repositories embedded_risc

[/] [embedded_risc/] [trunk/] [Verilog/] [cmd_ack.v] - Blame information for rev 27

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 hosseinami
/*********************************************************
2
 MODULE:                Sub Level Command Acknowledge
3
 
4
 FILE NAME:     cmd_ack.v
5
 VERSION:       1.0
6
 DATE:          April 28th, 2002
7
 AUTHOR:                Hossein Amidi
8
 COMPANY:
9
 CODE TYPE:     Register Transfer Level
10
 
11
 DESCRIPTION:   This module is the sub level RTL code of SDRAM Controller ASIC verilog
12
 code. It will generate the command acknowledge signal.
13
 
14
 
15
 Hossein Amidi
16
 (C) April 2002
17
 
18
*********************************************************/
19
 
20
// DEFINES
21
`timescale 1ns / 10ps
22
 
23
module cmd_ack(// Input
24
                                        reset,
25
                                        clk0,
26
                                        cmack,
27
                                        load_time,
28
                                        load_rfcnt,
29
                                        // Output
30
                                        cmdack
31
                                        );
32
 
33
 
34
// Parameter
35
`include        "parameter.v"
36
 
37
// Input
38
input reset;
39
input clk0;
40
input cmack;
41
input load_time;
42
input load_rfcnt;
43
 
44
// Output
45
output cmdack;
46
 
47
// Internal wire and reg signals
48
reg cmdack;
49
 
50
// Assignment
51
 
52
// Generating CMDACK Signal
53
always @(posedge reset or posedge clk0)
54
begin
55
        if(reset == 1'b1)
56
                cmdack <= 1'b0;
57
        else
58
        begin
59
                if(((cmack == 1'b1) | (load_time == 1'b1) | (load_rfcnt == 1'b1)) & (cmdack == 1'b0))
60
                        cmdack <= 1'b1;
61
                else
62
                        cmdack <= 1'b0;
63
        end
64
end
65
 
66
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.