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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [control/] [ir.v] - Diff between revs 3 and 8

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 3 Rev 8
Line 12... Line 12...
// Altera or its authorized distributors.  Please refer to the 
// Altera or its authorized distributors.  Please refer to the 
// applicable agreement for further details.
// applicable agreement for further details.
 
 
// PROGRAM              "Quartus II 64-Bit"
// PROGRAM              "Quartus II 64-Bit"
// VERSION              "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
// VERSION              "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
// CREATED              "Fri Oct 31 20:07:47 2014"
// CREATED              "Fri Feb 26 22:23:08 2016"
 
 
module ir(
module ir(
        ctl_ir_we,
        ctl_ir_we,
        clk,
        clk,
 
        nreset,
        db,
        db,
        opcode
        opcode
);
);
 
 
 
 
input wire      ctl_ir_we;
input wire      ctl_ir_we;
input wire      clk;
input wire      clk;
 
input wire      nreset;
input wire      [7:0] db;
input wire      [7:0] db;
output reg      [7:0] opcode;
output reg      [7:0] opcode;
 
 
 
 
 
 
 
 
 
 
 
 
always@(posedge clk)
always@(posedge clk or negedge nreset)
begin
begin
 
if (!nreset)
 
        begin
 
        opcode[7:0] <= 8'b00000000;
 
        end
 
else
if (ctl_ir_we)
if (ctl_ir_we)
        begin
        begin
        opcode[7:0] <= db[7:0];
        opcode[7:0] <= db[7:0];
        end
        end
end
end

powered by: WebSVN 2.1.0

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