Dealing with block RAM: pointers & cluebats please!

I feel a bit of a dummkopf as I'm stumped dealing with block RAM. I've been able to synthesize a few simple CPUs. Up to now, my memory modules look like:

  output [7:0] result;
  reg [7:0] mem [0:255];
  assign result= mem[address];
  always @(posedge i_clk)
    if (wr_stb)
      mem[address] <= data;

This doesn't synthesize to block RAM, e.g. yosys says Mapping to bram type $__ECP5_DP16KD failed. So, I can change this to a clocked output:

  output reg [7:0] result;
  reg [7:0] mem [0:255];
  always @(posedge i_clk) begin
    if (wr_stb)
      mem[address] <= data;
    result <= mem[address];
  end

which does synthesize: Mapping to bram type $__ECP5_DP16KD.

Now the dummkopf part: I know the result is going to arrive a tick later with this version, but how do I deal with this delay? Example: I'm using a ROM to hold CPU microinstructions. Now the control lines coming out from the ROM are delayed and I can't see what to do about it. The CPU isn't pipelined: I was expecting the control lines to arrive as soon as I need them.

I'm not looking for significant help here: short clues and pointers to on-line resources would be wonderful. On the other hand, I have quickly built a really primitive microsequenced CPU with a decode ROM as above. If someone has a Patreon and wouldn't mind putting in a few hours to explain the needed changes to me, I'd be happy to reimburse.

Thanks in advance for all your suggestions and comments! Warren

πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/DoctorWkt
πŸ“…︎ Apr 07 2019
🚨︎ report
I need help with ffmpeg. Cluebat lartings welcome.

I have an mp3 file that I want to upload to YouTube. YouTube of course doesn't allow straight-up audio uploads, only video submissions. So I want to use ffmpeg to convert the mp3 to mp4, adding an image as the video track.
(A single image for an unchanging static picture throughout the video is fine. I know that it's possible to make a video with timed slides from multiple images, but I don't need anything fancy like that.)
I actually used

ffmpeg -i h6_logo_02.gif -i bloggers.mp3 -acodec copy bloggers.mp4

and the resulting mp4 plays fine in vlc, but YouTube chokes on that file, returning an error message of

> Failed (unable to convert video file)

after I upload it.

Has anyone done anything like this before?
How can I create a movie that YouTube will accept?
I'd be MUCH obliged for any pointers.

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/ropers
πŸ“…︎ Mar 21 2010
🚨︎ report
SERIOUS: This subreddit needs to understand what a "dad joke" really means.

I don't want to step on anybody's toes here, but the amount of non-dad jokes here in this subreddit really annoys me. First of all, dad jokes CAN be NSFW, it clearly says so in the sub rules. Secondly, it doesn't automatically make it a dad joke if it's from a conversation between you and your child. Most importantly, the jokes that your CHILDREN tell YOU are not dad jokes. The point of a dad joke is that it's so cheesy only a dad who's trying to be funny would make such a joke. That's it. They are stupid plays on words, lame puns and so on. There has to be a clever pun or wordplay for it to be considered a dad joke.

Again, to all the fellow dads, I apologise if I'm sounding too harsh. But I just needed to get it off my chest.

πŸ‘︎ 17k
πŸ’¬︎
πŸ‘€︎ u/anywhereiroa
πŸ“…︎ Jan 15 2022
🚨︎ report
Blind Girl Here. Give Me Your Best Blind Jokes!

Do your worst!

πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Leckzsluthor
πŸ“…︎ Jan 02 2022
🚨︎ report
This subreddit is 10 years old now.

I'm surprised it hasn't decade.

πŸ‘︎ 14k
πŸ’¬︎
πŸ‘€︎ u/frexyincdude
πŸ“…︎ Jan 14 2022
🚨︎ report
Dropped my best ever dad joke & no one was around to hear it

For context I'm a Refuse Driver (Garbage man) & today I was on food waste. After I'd tipped I was checking the wagon for any defects when I spotted a lone pea balanced on the lifts.

I said "hey look, an escaPEA"

No one near me but it didn't half make me laugh for a good hour or so!

Edit: I can't believe how much this has blown up. Thank you everyone I've had a blast reading through the replies πŸ˜‚

πŸ‘︎ 20k
πŸ’¬︎
πŸ‘€︎ u/Vegetable-Acadia
πŸ“…︎ Jan 11 2022
🚨︎ report
What starts with a W and ends with a T

It really does, I swear!

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/PsychedeIic_Sheep
πŸ“…︎ Jan 13 2022
🚨︎ report
Why did Karen press Ctrl+Shift+Delete?

Because she wanted to see the task manager.

πŸ‘︎ 11k
πŸ’¬︎
πŸ‘€︎ u/Eoussama
πŸ“…︎ Jan 17 2022
🚨︎ report
So 2 trees got arrested in the town I live...

Heard they've been doing some shady business.

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/K1ll47h3K1n9
πŸ“…︎ Jan 18 2022
🚨︎ report
What is the scariest tree?

BamBOO!

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/K1ll47h3K1n9
πŸ“…︎ Jan 18 2022
🚨︎ report
What is a a bisexual person doing when they’re not dating anybody?

They’re on standbi

πŸ‘︎ 11k
πŸ’¬︎
πŸ‘€︎ u/Toby-the-Cactus
πŸ“…︎ Jan 12 2022
🚨︎ report
Geddit? No? Only me?
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/shampy311
πŸ“…︎ Dec 28 2021
🚨︎ report
I wanna hear your best airplane puns.

Pilot on me!!

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/Paulie_Felice
πŸ“…︎ Jan 07 2022
🚨︎ report
E or ß?
πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/Amazekam
πŸ“…︎ Jan 03 2022
🚨︎ report
What did Spartacus say when the lion ate his wife?

Nothing, he was gladiator.

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/rj104
πŸ“…︎ Jan 15 2022
🚨︎ report
Pun intended.
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Sharmaji1301
πŸ“…︎ Jan 15 2022
🚨︎ report
No spoilers
πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/Onfour
πŸ“…︎ Jan 06 2022
🚨︎ report
Which actor drives the least?

Christopher Walken

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/TR1771N
πŸ“…︎ Jan 18 2022
🚨︎ report
Covid problems
πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/theincrediblebou
πŸ“…︎ Jan 12 2022
🚨︎ report
These aren't dad jokes...

Dad jokes are supposed to be jokes you can tell a kid and they will understand it and find it funny.

This sub is mostly just NSFW puns now.

If it needs a NSFW tag it's not a dad joke. There should just be a NSFW puns subreddit for that.

Edit* I'm not replying any longer and turning off notifications but to all those that say "no one cares", there sure are a lot of you arguing about it. Maybe I'm wrong but you people don't need to be rude about it. If you really don't care, don't comment.

πŸ‘︎ 12k
πŸ’¬︎
πŸ‘€︎ u/Lance986
πŸ“…︎ Dec 15 2021
🚨︎ report
Thoughts upon second read of novel first four chapters spoilers everywhere

I was going to take notes as I read and post on the whole thing, but it was getting awfully long, so this is on the first four chapters. I was trying to read it as if I were new to the story, and it just a new science fiction/fantasy story in a new setting.

Chapter 1 Reincarnation

Summary: Worldbuilding and character expectations, both of our protaganist and everyone else. Hints that not everyone agreed with the offical story back then. Names planted for later. Why is Jiang Cheng described as 'little'? Event thirteen years prior probably going to be important since that is when our protaganist died.

Chapter 2The intractable

He's back.

Proud, but also kind, and as he figures out what the wish he needs to grant is says 'you've got the wrong person'. Wants to gaze in reverence on the face of the man who brought him back. Intelligent and quick. He comes off as someone who doesn't kill lightly, and doesn't like being forced into this situation.

The bully swiped all 'his' cultivation stuff. The bully is later found dead in a corridor - indoors?

β€œRight after subduing the walking corpses, we were rushing to the east courtyard, and the dead body was lying there in the corridor.” To me 'corridor' signals an indoors passage. Which indicates the arm was indoors.

- with a spirit lure flag on him and the arm having drained him. Could the arm have been in the stuff Mo Z swiped from Mo Xuanyu? and Xuanyu was competent enough to keep it under control until his bully of a cousin swiped his stuff, meddled with it, and threw in the spirit lure flag into the mix? No one in the text seems to think this is a possibility, but given the attention to the bully's misdeeds and reading this as a mystery, that authorial attention is often a cluebat that this happening is important.

General impressions of protaganist are that he's a decent guy, doesn't want the juniors to wind up dead, but is trying to help indirectly and quietly rather than be obvious and have attention drawn to what he is doing. After all, his last living memory was of everyone hunting him down and a very bad death. He does appear to have some knowledge of what he was doing after his demise and certainly doesn't wake up as if he just experienced dying. Capable of thinking fast enough to convey information without giving away his deep knowledge of the situation. Interesting that the spirits in the fierce corpses are terrified of him. Also interesting is how easy he finds

... keep reading on reddit ➑

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/eft-g
πŸ“…︎ Dec 31 2021
🚨︎ report
"Prediction market" letting you gamble Bitcoin gets cluebatted hard by the SEC. These bozos weren't even *incorporated*. Of course, it's just class discrimination by the financiers, and resentment of "Startup Growth Hacks". medium.com/@eiaine/how-st…
πŸ‘︎ 53
πŸ’¬︎
πŸ‘€︎ u/dgerard
πŸ“…︎ Jun 01 2015
🚨︎ report
Spi__
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/Fast_Echidna_8520
πŸ“…︎ Jan 11 2022
🚨︎ report
I had a vasectomy because I didn’t want any kids.

When I got home, they were still there.

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/demotrek
πŸ“…︎ Jan 13 2022
🚨︎ report
What did 0 say to 8 ?

What did 0 say to 8 ?

" Nice Belt "

So What did 3 say to 8 ?

" Hey, you two stop making out "

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/designjeevan
πŸ“…︎ Jan 03 2022
🚨︎ report
For Gotham
πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/FreeHugsXD
πŸ“…︎ Jan 17 2022
🚨︎ report
I dislike karma whores who make posts that imply it's their cake day, simply for upvotes.

I won't be doing that today!

πŸ‘︎ 15k
πŸ’¬︎
πŸ‘€︎ u/djcarves
πŸ“…︎ Dec 27 2021
🚨︎ report
The Ancient Romans II
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/mordrathe
πŸ“…︎ Dec 29 2021
🚨︎ report
I'd like to dedicate this joke to my wisdom teeth.

[Removed]

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/ThoughtPumP
πŸ“…︎ Jan 14 2022
🚨︎ report
Where do you find a cow with no legs?

Where ever you left it πŸ€·β€β™€οΈπŸ€­

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/kitkatty0309
πŸ“…︎ Jan 16 2022
🚨︎ report
I did it, I finally did it. After 4 years and 92 days I went from being a father, to a dad.

This morning, my 4 year old daughter.

Daughter: I'm hungry

Me: nerves building, smile widening

Me: Hi hungry, I'm dad.

She had no idea what was going on but I finally did it.

Thank you all for listening.

πŸ‘︎ 17k
πŸ’¬︎
πŸ‘€︎ u/Sk2ec
πŸ“…︎ Jan 01 2022
🚨︎ report
Naan-negotiable
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/sjmaeff
πŸ“…︎ Jan 16 2022
🚨︎ report
It this sub dead?

There hasn't been a post all year!

πŸ‘︎ 13k
πŸ’¬︎
πŸ‘€︎ u/TheTreelo
πŸ“…︎ Jan 01 2022
🚨︎ report
How do you stop Canadian bacon from curling in your frying pan?

You take away their little brooms

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/Majorpain2006
πŸ“…︎ Jan 09 2022
🚨︎ report
School Was Clothed
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Kennydoe
πŸ“…︎ Jan 08 2022
🚨︎ report
Remember that joke I told you about the chiropractor?

It was about a weak back.

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/tanglwyst
πŸ“…︎ Jan 16 2022
🚨︎ report
Letting loose with these puns
πŸ‘︎ 6k
πŸ’¬︎
πŸ“…︎ Jan 13 2022
🚨︎ report
Couch potato
πŸ‘︎ 8k
πŸ’¬︎
πŸ“…︎ Dec 31 2021
🚨︎ report
Baka!
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/ridi86
πŸ“…︎ Jan 09 2022
🚨︎ report
concrete πŸ—Ώ
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Fast_Echidna_8520
πŸ“…︎ Jan 07 2022
🚨︎ report
All dad jokes are bad and here’s why

Why

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/LordCinko
πŸ“…︎ Jan 13 2022
🚨︎ report
My name is ABCDEFGHIJKMNOPQRSTUVWXYZ

It’s pronounced β€œNoel.”

πŸ‘︎ 14k
πŸ’¬︎
πŸ‘€︎ u/beef_fried_rice
πŸ“…︎ Dec 25 2021
🚨︎ report
Why are people so surprised and angry about Djokovic being an anti-vaxxer?

After all his first name is No-vac

πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/hangryman23
πŸ“…︎ Jan 06 2022
🚨︎ report
That’s Michelle
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/FLEXSEALBREAKER
πŸ“…︎ Jan 10 2022
🚨︎ report
If Korean pop is shortened to Kpop and Korean Drama is Kdrama...

What, then, is Chinese rap?

Edit:

Notable mentions from the comments:

  • Spanish/Swedish/Swiss/Serbian hits

  • French/Finnish art

  • Country/Canadian rap

  • Chinese/Country/Canadian rock

  • Turkish/Tunisian/Taiwanese rap

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/hootanahalf
πŸ“…︎ Jan 09 2022
🚨︎ report
Knowledgeable man
πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/elisioth4739
πŸ“…︎ Jan 16 2022
🚨︎ report
Is this sub still active?

There hasn't been a single post this year!

(Happy 2022 from New Zealand)

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/DonStimpo
πŸ“…︎ Dec 31 2021
🚨︎ report
What did the ocean say to the beach?

Nothing, it just waved

πŸ‘︎ 2k
πŸ’¬︎
πŸ‘€︎ u/hackerboi1198
πŸ“…︎ Jan 13 2022
🚨︎ report
is Isn't
πŸ‘︎ 2k
πŸ’¬︎
πŸ‘€︎ u/mordrathe
πŸ“…︎ Jan 11 2022
🚨︎ report
@u/mordrathe - remix
πŸ‘︎ 2k
πŸ’¬︎
πŸ‘€︎ u/SpydrRydr
πŸ“…︎ Jan 12 2022
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.