?? spi_page_cnt_rtl.v
字號(hào):
// HDLi Version 3.0c IP Bundle 1999.07.23
// Parameters: counter -b8 -t0 -p0 -f1 -L1 -C -c -R -N -M -n 0xff -l vsc983 -padlib vst8p31 -Synopsys -rtl -nentity -nadd_p -ntiming -verilog -br 0,4,8,12,32,0
// spi_page_cnt: 100.33 physical gates (vsc983)
// spi_page_cnt: 2601.64 squm area (vsc983)
// -----------------------------------------------------------------------------
// VLSI Technology, Inc.
// -----------------------------------------------------------------------------
// Copyright 1999 by VLSI Technology, Inc. All rights reserved.
//
// This module is property of VLSI Technology, Inc (VLSI) and its use is
// granted to the customer for the sole purpose of implementing in silicon
// provided by VLSI. This module may only be used in accordance with the
// provisions of the Design Integrator License Agreement.
//
// -----------------------------------------------------------------------------
// Counter Compiler Version 1.1b
// -----------------------------------------------------------------------------
// spi_page_cnt : RTL Verilog
// (RTL is optimized for simulation, not synthesis)
// "spi_page_cnt.v" contains the Structural Verilog
//
// Compiled by coste on Tue Aug 24 15:34:44 1999
// -----------------------------------------------------------------------------
module spi_page_cnt (
clk,
cdn,
load,
datain,
cen,
q,
tci);
input clk;
input cdn;
input load;
input [7:0] datain;
input cen;
output [7:0] q;
output tci;
parameter areset_value = 8'b00000000;
parameter maxval = 8'b11111111;
parameter minval = 8'b00000000;
reg [7:0] q;
wire tci;
always @(posedge clk or negedge cdn)
begin
if (~cdn)
q <= areset_value;
else if (load)
q <= datain;
else if (cen)
q <= ((q <= minval || q >= maxval) && &(~q | minval)) ? maxval : (q-1);
end
assign tci = (q === minval);
endmodule // spi_page_cnt
// -----------------------------------------------------------------------------
// Verilog Component Instantiation:
// -----------------------------------------------------------------------------
/*
spi_page_cnt u1 (.clk(), // Clock Input
.cdn(), // Clear Direct Not Input
.load(), // Load Control Input
.datain(), // Data Input
.cen(), // Count Enable Input
.q(), // 8 bit Result
.tci()); // Terminal Count Indicator
*/
// -----------------------------------------------------------------------------
// Verilog Synthesis Commands:
// -----------------------------------------------------------------------------
/*
set_dont_touch find(design, spi_page_cnt, -hierarchy)
remove_attribute find(design, spi_page_cnt, -hierarchy) dont_touch
set_ungroup find(design, spi_page_cnt, -hierarchy)
*/
// -----------------------------------------------------------------------------
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -