REV 3 - REV 5 - The beginning (ST536)

All about the ST536 030 ST booster.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: REV 3 - The beginning

Post by Badwolf »

ijor wrote: 18 Apr 2022 22:41

Code: Select all

reg [7:0] data;
Ach! That always gets me too. :)

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: REV 3 - The beginning

Post by exxos »

ijor wrote: 18 Apr 2022 22:41 This should be:

Code: Select all

reg [7:0] data;
I wondered that but it just throws up loads more errors all over the place :shrug:

Saying that, its doing something else since doing @Badwolf's suggestions.

Code: Select all

ERROR:Xst:899 - "rtl/main_top.v" line 506: The logic for <data> does not match a known FF or Latch template. The description style you are using to describe a register or latch is not supported in the current software release.
WARNING:Xst:1464 - "rtl/main_top.v" line 125: Exactly equal expression will be synthesized as an equal expression, simulation mismatch is possible.
WARNING:Xst:1464 - "rtl/main_top.v" line 126: Exactly equal expression will be synthesized as an equal expression, simulation mismatch is possible.
   
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: REV 3 - The beginning

Post by exxos »

@Badwolf seems to error on your line now ?

Capture.PNG

Code: Select all

ERROR:Xst:899 - "rtl/main_top.v" line 506: The logic for <data> does not match a known FF or Latch template. The description style you are using to describe a register or latch is not supported in the current software release.
You do not have the required permissions to view the files attached to this post.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: REV 3 - The beginning

Post by Badwolf »

Progress at least -- it's down to one error.

Basically it doesn't like your always statement. You've not covered all cases I expect.

Put in an else where you just set data to D?

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
ijor
Posts: 825
Joined: 30 Nov 2018 20:45

Re: REV 3 - The beginning

Post by ijor »

exxos wrote: 18 Apr 2022 22:50 always @(posedge CLK100M, negedge AS30) begin
...

Code: Select all

ERROR:Xst:899 - "rtl/main_top.v" line 506: The logic for <data> does not match a known FF or Latch template. The description style you are using to describe a register or latch is not supported in the current software release.
You are declaring a flip flop with an async reset (or preset), but you are not using it. The compiler gets confused and doesn't know which one is the clock and which one is the async.
http://github.com/ijor/fx68k 68000 cycle exact FPGA core
FX CAST Cycle Accurate Atari ST core
http://pasti.fxatari.com
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: REV 3 - The beginning

Post by exxos »

Badwolf wrote: 18 Apr 2022 22:51 Progress at least -- it's down to one error.

Basically it doesn't like your always statement. You've not covered all cases I expect.

Put in an else where you just set data to D?

Code: Select all

always @(posedge CLK100M, negedge AS30) begin

        if (BUSEN_IRQ == 1'b1) begin
          //  data[7:0] <= D[7:0];
           // data[5] <= 1'b0; //patch bit 5
			  data[7:0] <= { D[7:6], 1'b0, D[4:0] };
			  end 
			  
			  if (BUSEN_IRQ == 1'b0) begin
			  D[7:0]  <= BUSEN_IRQ ? 8'bzzzzzzzz : data[7:0];
			  end 
end
Still not happy :( Its pointing to the second to last END :shrug:

Code: Select all

ERROR:HDLCompilers:247 - "rtl/main_top.v" line 510 Reference to vector wire 'D' is not a legal reg or variable lvalue
ERROR:HDLCompilers:106 - "rtl/main_top.v" line 510 Illegal left hand side of nonblocking assignment
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: REV 3 - The beginning

Post by exxos »

ijor wrote: 18 Apr 2022 22:54 You are declaring a flip flop with an async reset (or preset), but you are not using it. The compiler gets confused and doesn't know which one is the clock and which one is the async.
ahhhhh.. I'm confused nevermind the compiler :lol:

It compiled now! As to if the code does what I want is another matter...

EDIT:

Nope, not booting at all now :lol: Will look at it again tomorrow when I get home from work.
ijor
Posts: 825
Joined: 30 Nov 2018 20:45

Re: REV 3 - The beginning

Post by ijor »

exxos wrote: 18 Apr 2022 22:45
Badwolf wrote: 18 Apr 2022 22:28 You're assigning D[7:0] twice. Once at the top, once at the bottom. Drop the top one.
ah yep. Made no odds though.
Assigning multiple times is usually beginning because, depending on the case the language does allow it. But you should be careful and normally avoid it, because it might be confusing. In some cases (not really here) it might be useful.
Badwolf wrote: 18 Apr 2022 22:45
ijor wrote: 18 Apr 2022 22:41

Code: Select all

reg [7:0] data;
Ach! That always gets me too. :)
Not just you, but all of us that are used to "C" style arrays :)
http://github.com/ijor/fx68k 68000 cycle exact FPGA core
FX CAST Cycle Accurate Atari ST core
http://pasti.fxatari.com
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: REV 3 - The beginning

Post by exxos »

ahhh I had a incorrect inversion. Now we booting again! Autoboot still works! Hopefully that will all function how it should with the other bits as well.
So thanks @Badwolf and @ijor for your input! :cheers:

EDIT:

:lol:

Capture.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: REV 3 - The beginning

Post by exxos »

So first "bug".. :lol: :roll:

When I do a "keyboard reset" the IDE can't autoboot. but if I press the reset button , it autoboots every time.. odd.

Return to “ST536 030 ST ACCELERATOR”

Who is online

Users browsing this forum: ClaudeBot and 7 guests