Forum: FPGA, VHDL & Verilog ABEL to Verilog conversion

Author: Sutton Mehaffey (Guest)
Posted on:

Rate this post
0 useful
not useful
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 

A7..A0 pin 1,2,5,6,7,8,9,10;
ABUS = [A7..A0];
D0 pin 60;
WR pin 22;
DISPLAY_POWER_P pin 121 istype 'reg_D';

DISPLAY_POWER_P.clk = !WR & (ABUS == ^h33);

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 

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 



Author: bko (Guest)
Posted on:

Rate this post
0 useful
not useful
In your case it could help to read the XST-User Guide in the
Xilinx Software Manuals:
 -> Chapter 2: XST HDL Coding Techniques <-
 Xilinx has there a lot of hardware examples for VHDL/verilog.
here the verilog for a D-type rising clock edge flipflop:
>Flip-Flop With Positive-Edge Clock Verilog Coding Example
>// Flip-Flop with Positive-Edge Clock
>module v_registers_1 (C, D, Q);
>         input C, D;
>         output Q;
>  reg Q;
>always @(posedge C)
>   begin
>     Q <= D;
>   end



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.