Re: [Oberon] Assumed issue in the Lola-2 compiler
Meanwhile I could also integrate the other fix by Jörg Straube (see http://lists.inf.ethz.ch/pipermail/oberon/2019/013320.html ) and also fixed two issues in the Risc5 Lola files. See https://github.com/rochus-keller/Lolac/tree/master/Original and https://github.com/rochus-keller/Lolac/tree/master/Examples/RISC5_original There seems still to be an issue with declarations of 2D arrays in the Lola-2 compiler; see https://github.com/rochus-keller/Lolac/blob/1cac988503e6b081619848a1fe11b96e... The same issue is also visible in the Lolac version generated with the Vishap compiler from the Oberon files. I also would like to discuss whether there is a way to avoid using a Xilinx specific module for TS() in the Verilog code generated by the Lola-2 compiler, see e.g. https://github.com/rochus-keller/Lolac/blob/1cac988503e6b081619848a1fe11b96e... Best R.K.
Hi Rochus
There seems still to be an issue with declarations of 2D arrays in the Lola-2 compiler; see https://github.com/rochus-keller/Lolac/blob/1cac988503e6b081619848a1fe11b96e... The same issue is also visible in the Lolac version generated with the Vishap compiler from the Oberon files.
Delete the following IF in LSC.Statement IF z # x THEN x.a := z.b; x.val := 1 END br Jörg
Rochus
I also would like to discuss whether there is a way to avoid using a Xilinx specific module for TS() in the Verilog code generated by the Lola-2 compiler, see e.g. https://github.com/rochus-keller/Lolac/blob/1cac988503e6b081619848a1fe11b96e...
In my point of view the Lola compiler could translate tri-state (0, 1, Z) buffers to more „standard“ Verilog. Something like: module tristate_buffer(I, enable, O); input I, enable; output O; assign O = enable ? I : 1'bz; endmodule But I guess the IOBUF primitive will be much more optimized in terms of routing and timing. If you have another FPGA board with another synthesizer tool, the easiest is probably to modify LSV to generate the optimized tri-state primitives for your board. br Jörg
I also would like to discuss whether there is a way to avoid using a Xilinx specific module for TS()...
In my point of view the Lola compiler could translate tri-state (0, 1, Z) buffers to ... assign O = enable ? I : 1'bz;
The interface of the IOBUF.v external module (ie the external Lola type IOBUF) happens to have been taken as-is from Xilinx but it's a pretty general thing. (I personally find Xilinx' parameter names .I and .O confusing, but whatever.) I agree it's tempting but I was rather glad I didn't change the TS to generate inline 'z expressions, when I came across a toolchain (Clifford Wolf's IceStorm tools for the Lattice iCE40) which didn't implement tri-state properly from the Verilog. I just wrote an IOBUF.v which wrapped the SB_IO with the relevant parameters set. I think there will always be chip-specific stuff which would not be usefully expressed in Lola, e.g. I/O buffers with pull-up resistors, double-data-rate I/O, phase-locked loops etc. Cheers, Paul
participants (3)
-
Jörg Straube -
Paul Reed -
rochus.keller@bluewin.ch