Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

MAXII Code

Firefighter
Beginner
955 Views

Hi Intel,

I am reading some reference code for MAXII CPLD.  It is below. I do not understand what it is doing. Any one can help?

maxii_io
d_bit_13(.datain ( sck), //serial_clk_out
.oe (DC2026_DETECT), //DC2026_DETECT=1 SCK_33=sck & gated_sck, DC_2026_DETECT=0 SCK_33=HiZ
.padio (SCK_33), //pin to SCK of LTC2380-24
.combout (B13)); //
defparam d_bit_13.operation_mode = "bidir";

0 Kudos
6 Replies
sstrell
Honored Contributor III
943 Views

This is an instantiation of a module named max_ii_io.  datain, oe, padio, and combout are the I/O of the module and sclk, DC2026_DETECT, SCK_33, and B13 are what they connect to in the current level of the design.  The defparam is sending a parameter value of "bidir" to a parameter named operation_mode in the instantiated module.

0 Kudos
Firefighter
Beginner
933 Views

Hi Sstrell,

 

Thanks for your reply.

Is max_ii_io module a library or something that Quartus integrated, just like DFF? I tried to search it in the project verilog code, but could not find it. I also search it in the MAXII book. No luck.

 

Cheers

0 Kudos
sstrell
Honored Contributor III
896 Views

Not a clue.  This is just standard Verilog code.  I don't know where you got it from or where you saw it.

0 Kudos
Nurina
Employee
881 Views

Hi,


Did the above reply help?


0 Kudos
Firefighter
Beginner
875 Views

Hi, Nurina and SStrell,

Thanks for help. It can be closed now.

0 Kudos
Nurina
Employee
868 Views

Glad your problem has been solved. I shall close the case now.

Regards,
Nurina

0 Kudos
Reply