Simulating ASMI Parallel II
Hello,
To be able to test our FPGA-Design in total, I’d like to connect a flash model of the S25FL128S with the ASMI Parallel II Core. I’m using a Cyclone V, and Quartus Version 18.1 Lite.
As far as I understand it, I’m supposed to write a wrapper that connects the block dut_asmiblock from altera_asmi2_qspi_interface_asmiblock.sv with the top-level block of the flash. However, regardless how I try to connect these two, I only manage to read ‘Z’. The AN-720 states that I should connect to the asmi_sim_model, not this block, but asmi_sim_model is not existing in the simulation folder of the ASMI Parallel II block. Do you have any hint for me what I am doing wrong here?
dut_asmiblock instance:
cyclonev_asmiblock dut_asmiblock (
.dclk(atom_ports_dclk),
.sce(atom_ports_ncs),
.oe(atom_ports_oe),
.data0out(atom_ports_dataout[0]),
.data1out(atom_ports_dataout[1]),
.data2out(atom_ports_dataout[2]),
.data3out(atom_ports_dataout[3]),
.data0oe(atom_ports_dataoe[0]),
.data1oe(atom_ports_dataoe[1]),
.data2oe(atom_ports_dataoe[2]),
.data3oe(atom_ports_dataoe[3]),
.data0in(atom_ports_datain[0]),
.data1in(atom_ports_datain[1]),
.data2in(atom_ports_datain[2]),
.data3in(atom_ports_datain[3]));
defparam
dut_asmiblock.enable_sim = ENABLE_SIM_MODEL;
ports of the flash block:
PORT (
-- Data Inputs/Outputs
SI : INOUT std_ulogic := 'U'; -- serial data input/IO0
SO : INOUT std_ulogic := 'U'; -- serial data output/IO1
-- Controls
SCK : IN std_ulogic := 'U'; -- serial clock input
CSNeg : IN std_ulogic := 'U'; -- chip select input
RSTNeg : IN std_ulogic := 'U'; -- hardware reset pin
WPNeg : INOUT std_ulogic := 'U'; -- write protect input/IO2
HOLDNeg : INOUT std_ulogic := 'U' -- hold input/IO3
);
Best regards,
Nanuq