OpenCores
URL https://opencores.org/ocsvn/a-z80/a-z80/trunk

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [host/] [common/] [wait_state.v] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 gdevic
// Copyright (C) 1991-2013 Altera Corporation
2
// Your use of Altera Corporation's design tools, logic functions 
3
// and other software and tools, and its AMPP partner logic 
4
// functions, and any output files from any of the foregoing 
5
// (including device programming or simulation files), and any 
6
// associated documentation or information are expressly subject 
7
// to the terms and conditions of the Altera Program License 
8
// Subscription Agreement, Altera MegaCore Function License 
9
// Agreement, or other applicable license agreement, including, 
10
// without limitation, that your use is for the sole purpose of 
11
// programming logic devices manufactured by Altera and sold by 
12
// Altera or its authorized distributors.  Please refer to the 
13
// applicable agreement for further details.
14
 
15
// PROGRAM              "Quartus II 64-Bit"
16
// VERSION              "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
17
// CREATED              "Thu Dec 08 00:16:50 2016"
18
 
19
module wait_state(
20
        CLK,
21
        nM1,
22
        nMREQ,
23
        nWAIT_M1,
24
        nWAIT_Mem
25
);
26
 
27
 
28
input wire      CLK;
29
input wire      nM1;
30
input wire      nMREQ;
31
output wire     nWAIT_M1;
32
output wire     nWAIT_Mem;
33
 
34
reg     SYNTHESIZED_WIRE_1;
35
reg     DFF_inst3;
36
reg     DFF_inst2;
37
reg     DFF_inst5;
38
wire    SYNTHESIZED_WIRE_0;
39
 
40
assign  nWAIT_M1 = DFF_inst2;
41
 
42
 
43
 
44
assign  SYNTHESIZED_WIRE_0 =  ~SYNTHESIZED_WIRE_1;
45
 
46
 
47
always@(posedge CLK or negedge DFF_inst3)
48
begin
49
if (!DFF_inst3)
50
        begin
51
        DFF_inst2 <= 1;
52
        end
53
else
54
        begin
55
        DFF_inst2 <= nM1;
56
        end
57
end
58
 
59
 
60
always@(posedge CLK)
61
begin
62
        begin
63
        DFF_inst3 <= DFF_inst2;
64
        end
65
end
66
 
67
 
68
always@(posedge CLK)
69
begin
70
        begin
71
        SYNTHESIZED_WIRE_1 <= nMREQ;
72
        end
73
end
74
 
75
 
76
always@(posedge CLK)
77
begin
78
        begin
79
        DFF_inst5 <= SYNTHESIZED_WIRE_1;
80
        end
81
end
82
 
83
assign  nWAIT_Mem = ~(DFF_inst5 & SYNTHESIZED_WIRE_0);
84
 
85
 
86
endmodule

powered by: WebSVN 2.1.0

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