Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2017/11/26 21:25:26
// Design Name:
// Module Name: pc
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module pc #(parameter WIDTH = 8)(
input wire clk,rst,en,
input wire[WIDTH-1:0] d,
output reg[WIDTH-1:0] q
);
always @(posedge clk,posedge rst) begin
if(rst) begin
q <= 0;
end else if(en) begin
/* code */
q <= d;
end
end
endmodulebbabecca6This file is pinned to the selected release. Download the original to open it in your design tool.