// Copyright (C) 1991-2013 Altera Corporation
|
// Copyright (C) 1991-2013 Altera Corporation
|
// Your use of Altera Corporation's design tools, logic functions
|
// Your use of Altera Corporation's design tools, logic functions
|
// and other software and tools, and its AMPP partner logic
|
// and other software and tools, and its AMPP partner logic
|
// functions, and any output files from any of the foregoing
|
// functions, and any output files from any of the foregoing
|
// (including device programming or simulation files), and any
|
// (including device programming or simulation files), and any
|
// associated documentation or information are expressly subject
|
// associated documentation or information are expressly subject
|
// to the terms and conditions of the Altera Program License
|
// to the terms and conditions of the Altera Program License
|
// Subscription Agreement, Altera MegaCore Function License
|
// Subscription Agreement, Altera MegaCore Function License
|
// Agreement, or other applicable license agreement, including,
|
// Agreement, or other applicable license agreement, including,
|
// without limitation, that your use is for the sole purpose of
|
// without limitation, that your use is for the sole purpose of
|
// programming logic devices manufactured by Altera and sold by
|
// programming logic devices manufactured by Altera and sold by
|
// 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 Feb 26 22:23:08 2016"
|
// CREATED "Sat Dec 10 08:56:46 2016"
|
|
|
module ir(
|
module ir(
|
ctl_ir_we,
|
ctl_ir_we,
|
clk,
|
clk,
|
nreset,
|
nreset,
|
hold_clk_wait,
|
nhold_clk_wait,
|
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 nreset;
|
input wire hold_clk_wait;
|
input wire nhold_clk_wait;
|
input wire [7:0] db;
|
input wire [7:0] db;
|
output reg [7:0] opcode;
|
output reg [7:0] opcode;
|
|
|
wire SYNTHESIZED_WIRE_0;
|
wire SYNTHESIZED_WIRE_0;
|
wire SYNTHESIZED_WIRE_1;
|
|
|
|
|
|
|
|
|
|
assign SYNTHESIZED_WIRE_0 = ~hold_clk_wait;
|
assign SYNTHESIZED_WIRE_0 = ctl_ir_we & nhold_clk_wait;
|
|
|
assign SYNTHESIZED_WIRE_1 = ctl_ir_we & SYNTHESIZED_WIRE_0;
|
|
|
|
|
|
always@(posedge clk or negedge nreset)
|
always@(posedge clk or negedge nreset)
|
begin
|
begin
|
if (!nreset)
|
if (!nreset)
|
begin
|
begin
|
opcode[7:0] <= 8'b00000000;
|
opcode[7:0] <= 8'b00000000;
|
end
|
end
|
else
|
else
|
if (SYNTHESIZED_WIRE_1)
|
if (SYNTHESIZED_WIRE_0)
|
begin
|
begin
|
opcode[7:0] <= db[7:0];
|
opcode[7:0] <= db[7:0];
|
end
|
end
|
end
|
end
|
|
|
|
|
endmodule
|
endmodule
|
|
|