Board logo

标题: oserdes仿真的问题 [打印本页]

作者: pengyongche    时间: 2011-11-2 11:06     标题: oserdes仿真的问题

例化OSERDES后在modsim中功能仿真
ddr 4:1 并转串
怎么输出恒为低电平
IBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;----------------------------------------------
---- any Xilinx primitives in this code.
library UNISIM;
use UNISIM.VComponents.all;
ENTITY ddr_se_io IS
PORT (
      d1 : IN STD_LOGIC; -- clock 0 rising edge
      d2 : IN STD_LOGIC; -- clock 0 falling edge
      d3 : IN STD_LOGIC; -- clock 1 rising edge
      d4 : IN STD_LOGIC; -- clock 1 falling edge
dout    : OUT STD_LOGIC;
clk2X : IN STD_LOGIC; -- freq=2x
clk1X         : IN STD_LOGIC;    -- freq=x
      reset          : IN STD_LOGIC
      );
END ddr_se_io;
ARCHITECTURE Behavioral  OF ddr_se_io IS
BEGIN


OSERDES_TX_DATA_d : OSERDES
  GENERIC MAP(
  DATA_RATE_OQ => "DDR", DATA_RATE_TQ => "DDR",  DATA_WIDTH => 4,
  INIT_OQ => '0', INIT_TQ => '0', SERDES_MODE => "MASTER",
  SRVAL_OQ => '0', SRVAL_TQ => '0', TRISTATE_WIDTH => 4)
PORT MAP (
OQ => dout,
SHIFTOUT1 => open,
SHIFTOUT2 => open,
TQ => open,
CLK => clk2X,
CLKDIV => clk1X,
D1 => d1,
D2 => d2,
D3 => d3,
D4 => d4,
D5 => '0',
D6 => '0',
OCE => '1',
REV => '0',
SHIFTIN1 => '0',
SHIFTIN2 => '0',
SR => reset,
T1 => '0',
T2 => '0',
T3 => '0',
T4 => '0',
TCE => '0');   


END Behavioral;
不知道为什么输出总是低电平呢?求解




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0