This repository has been archived on 2024-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
study/other/adc_uart/db/a_dpfifo_i041.tdf
2020-06-09 15:48:03 +08:00

81 lines
3.5 KiB
Plaintext

--a_dpfifo ADD_RAM_OUTPUT_REGISTER="OFF" ALLOW_RWCYCLE_WHEN_FULL="OFF" DEVICE_FAMILY="Cyclone IV E" LPM_NUMWORDS=1024 LPM_SHOWAHEAD="OFF" lpm_width=12 lpm_widthu=10 OVERFLOW_CHECKING="ON" UNDERFLOW_CHECKING="ON" clock data empty full q rreq sclr usedw wreq CARRY_CHAIN="MANUAL" CARRY_CHAIN_LENGTH=48 CYCLONEII_M4K_COMPATIBILITY="ON" INTENDED_DEVICE_FAMILY="Cyclone IV E" LOW_POWER_MODE="AUTO"
--VERSION_BEGIN 18.0 cbx_altdpram 2018:04:24:18:04:18:SJ cbx_altera_counter 2018:04:24:18:04:18:SJ cbx_altera_syncram 2018:04:24:18:04:18:SJ cbx_altera_syncram_nd_impl 2018:04:24:18:04:18:SJ cbx_altsyncram 2018:04:24:18:04:18:SJ cbx_cycloneii 2018:04:24:18:04:18:SJ cbx_fifo_common 2018:04:24:18:04:18:SJ cbx_lpm_add_sub 2018:04:24:18:04:18:SJ cbx_lpm_compare 2018:04:24:18:04:18:SJ cbx_lpm_counter 2018:04:24:18:04:18:SJ cbx_lpm_decode 2018:04:24:18:04:18:SJ cbx_lpm_mux 2018:04:24:18:04:18:SJ cbx_mgl 2018:04:24:18:08:49:SJ cbx_nadder 2018:04:24:18:04:18:SJ cbx_scfifo 2018:04:24:18:04:18:SJ cbx_stratix 2018:04:24:18:04:18:SJ cbx_stratixii 2018:04:24:18:04:18:SJ cbx_stratixiii 2018:04:24:18:04:18:SJ cbx_stratixv 2018:04:24:18:04:18:SJ cbx_util_mgl 2018:04:24:18:04:18:SJ VERSION_END
-- Copyright (C) 2018 Intel Corporation. All rights reserved.
-- Your use of Intel Corporation's design tools, logic functions
-- and other software and tools, and its AMPP partner logic
-- functions, and any output files from any of the foregoing
-- (including device programming or simulation files), and any
-- associated documentation or information are expressly subject
-- to the terms and conditions of the Intel Program License
-- Subscription Agreement, the Intel Quartus Prime License Agreement,
-- the Intel FPGA IP License Agreement, or other applicable license
-- agreement, including, without limitation, that your use is for
-- the sole purpose of programming logic devices manufactured by
-- Intel and sold by Intel or its authorized distributors. Please
-- refer to the applicable agreement for further details.
FUNCTION a_fefifo_jaf (aclr, clock, rreq, sclr, wreq)
RETURNS ( empty, full, usedw_out[9..0]);
FUNCTION altsyncram_osm1 (address_a[9..0], address_b[9..0], clock0, clock1, clocken1, data_a[11..0], wren_a)
RETURNS ( q_b[11..0]);
FUNCTION cntr_cpb (aclr, clock, cnt_en, sclr)
RETURNS ( q[9..0]);
--synthesis_resources = lut 30 M9K 2 reg 32
SUBDESIGN a_dpfifo_i041
(
clock : input;
data[11..0] : input;
empty : output;
full : output;
q[11..0] : output;
rreq : input;
sclr : input;
usedw[9..0] : output;
wreq : input;
)
VARIABLE
fifo_state : a_fefifo_jaf;
FIFOram : altsyncram_osm1;
rd_ptr_count : cntr_cpb;
wr_ptr : cntr_cpb;
aclr : NODE;
rd_ptr[9..0] : WIRE;
valid_rreq : WIRE;
valid_wreq : WIRE;
BEGIN
fifo_state.aclr = aclr;
fifo_state.clock = clock;
fifo_state.rreq = rreq;
fifo_state.sclr = sclr;
fifo_state.wreq = wreq;
FIFOram.address_a[] = wr_ptr.q[];
FIFOram.address_b[] = ((! sclr) & rd_ptr[]);
FIFOram.clock0 = clock;
FIFOram.clock1 = clock;
FIFOram.clocken1 = (valid_rreq # sclr);
FIFOram.data_a[] = data[];
FIFOram.wren_a = valid_wreq;
rd_ptr_count.aclr = aclr;
rd_ptr_count.clock = clock;
rd_ptr_count.cnt_en = valid_rreq;
rd_ptr_count.sclr = sclr;
wr_ptr.aclr = aclr;
wr_ptr.clock = clock;
wr_ptr.cnt_en = valid_wreq;
wr_ptr.sclr = sclr;
aclr = GND;
empty = fifo_state.empty;
full = fifo_state.full;
q[] = FIFOram.q_b[];
rd_ptr[] = rd_ptr_count.q[];
usedw[] = fifo_state.usedw_out[];
valid_rreq = (rreq & (! fifo_state.empty));
valid_wreq = (wreq & (! fifo_state.full));
END;
--VALID FILE