CPLD: collapse

Hallo,

in an CPLD-Design (XC95??XL), I have 2 data-strobe signals, and a data-stobe-select-signal. The selected strobe should clock 2*16 input regs:

input [15:0] pinoekels; reg [15:0] di1; reg [15:0] di2; wire strobe = (ssel && s1) || (ssel && s2);

always @(posedge strobe) begin di1

Reply to
Jan Bruns
Loading thread data ...

"Jan Bruns":

These device have only one "product term" for clocks. Sorry.

Gruss

Jan Bruns

Reply to
Jan Bruns

By looking at your code. It is an synchronous design. CPLD will not gives good performance for asynchronous design because of their architectures.

If possible, you should try clock enable signal instead of directly drive the register's clk.

Reply to
Kar

I think the XC9500 does not have "negedge" flip-flops. Thues it has to use inverted feedback clock to trigger the flip-flops with negtive edge.

Reply to
vax, 9000

Looks like your're right.

But the 9500XL have a programmable clock-inverter.

Gruss

Jan Bruns

Reply to
Jan Bruns

"Kar":

Hmja.

clk = ATA udma_in_dev_strobe && ATA_PIO_in_strobe; ce = strobeenable; // ATA udma_in_dev_strobe is multiplexed with "IORDY"

is not exactly what I planned to implement, but solved the problem.

Gruss

Jan Bruns

Reply to
Jan Bruns

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.