Forum Discussion
raviganesh
Occasional Contributor
4 years agoThe future for AHDL
AHDL is wonderful language. I have worked on 4 HDL languages, ABEL, AHDL, Verilog and currenlty SpinalHdl.
Here is my recent work with SpinalHdl
On some aspects like an array of modules, AHDL o...
raviganesh
Occasional Contributor
4 years agoI am very pleased to offer the design in the two languages. But the final winner will be array of counter, which is coming next.
SpinalHDL
class count extends component() { var cnt = out Reg(UInt(8 bits)) init(0) cnt := cnt + 1 }
clk and !rst are implied. That is SpinalHDL philosophy of removing verbosity.
AHDL
SUBDESIGN count ( clk : Input; rst : Input; cnt[7..0] : Output; ) VARAIBLE myCnt : LPM_COUNTER WITH (LPM_WIDTH=8, LPM_DIRECTION = "UP"); BEGIN myCnt.clock = clk; myCnt.aclr = !rst; cnt[] = myCnt.q[]; END;