Guest
#3671862
I've used Abel for many years on all kinds of projects. The newer Xilinx IDEs no longer support Abel. I still use the last version (10.5) that has the Abel compiler. Obviously changing languages requires some type of learning curve. But, I am thinking that I need to set aside some time to learn Verilog since that seems to be the language of choice these days in CPLD design. Most of my projects use a CPLD as an address decode chip. I was looking for different schemes for a simple Abel address decode conversion to Verilog. A7..A0 pin 1,2,5,6,7,8,9,10; ABUS = [A7..A0]; D0 pin 60; WR pin 22; RESET_BUTTON_N pin 122; DISPLAY_POWER_P pin 121 istype 'reg_D'; DISPLAY_POWER_P.clk = !WR & (ABUS == ^h33); DISPLAY_POWER_P := D0; DISPLAY_POWER_P.ar = !RESET_BUTTON_N; So, basically, this is a power line for a Display using a 'D' flip flop as a latch. If ABUS = 0x33, WR is low, and D0 is high, the display turns on. D0=0 turns the display off. A reset button clears out the latch. What is the correlating code in verilog to do the same thing? I have 50 or so exact configurations in my Abel code to turn on/off different things, using this exact same code scheme. So, is this an easy conversion? Thanks. Sutton