Open ladmanj opened 1 year ago
I must now admit that I'm super confused, where the problem originates from. I found correlation with the presence of the XOR:0 in the comment (produced by jedisasm). That is conforming to the fact that the output is always inverted both by the output driver and by the fact that the loopback is fed by !Q output of the FF where used.
Maybe in my jed -> verilog reverse there are some gaps in understanding My physical device isn't working according to the simulation however.
Dear @psurply,
I'm struggling with non-functional Jed outputs from ReGAL, which I found an excellent tool otherwise. Some signals are inverted inappropriately.
Here is example of a problematic design. But similar errors are produced in 3 of 4 files of my current design. The design is in the attached file including simulation testbench.
Thank you for fixing it, if possible.
I analyzed the output Jed files using the old tool JED2EQN from National Semiconductor of that time, running under MS-DOS. A much newer tool https://github.com/dev-zzo/jedisasm gives comparable results.
Jakub Ladman
Full original verilog source (working in simulation)
Shortened jed2eqn output with bug:
shortened jedisasm PLD output with bug
shortened PLD to verilog rewrite with manual bug fix
Full jed2eqn output (with bug)
Full jedisasm output (with bug)
Full PLD to verilog rewrite used for simulation and debug (with fix)
project.zip