Commented

dejo, to science Serbian

Hi, I'm not quite sure if this vhdl code and testbench is correct for the given task. Can you take a look?

Design a one-hour kitchen timer. The device should have buttons/switches to start and stop the timer, as well as to set the desired time interval for the alarm. Realize the task using the software package Quartus or in GHDL, confirm the correctness of the project task by simulation.

This is VHDL code:

use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity Kitchen_Timer is
  port (
    clk   : in std_logic;    -- Clock input
    reset : in std_logic;    -- Reset input
    start : in std_logic;    -- Start button input
    stop  : in std_logic;    -- Stop button input
    alarm : out std_logic    -- Alarm output
  );
end entity Kitchen_Timer;

-- Declare the architecture for the kitchen timer
architecture Behavioral of Kitchen_Timer is
  signal count     : integer range 0 to 3600 := 0;   -- Counter for timer
  signal alarming  : std_logic := '0';               -- Signal to indicate alarming interval
  signal alarm_en  : std_logic := '0';               -- Signal to enable alarming interval
  signal alarm_cnt : integer range 0 to 600 := 0;    -- Counter for alarming interval
begin
  -- Process to control the kitchen timer and alarming interval
  process (clk, reset)
  begin
    if (reset = '1') then
      count     <= 0;
      alarming  <= '0';
      alarm_en  <= '0';
      alarm_cnt <= 0;
    elsif (rising_edge(clk)) then
      if (stop = '1') then
        count     <= 0;
        alarming  <= '0';
        alarm_en  <= '0';
        alarm_cnt <= 0;
      elsif (start = '1' and count < 3600) then
        count <= count + 1;
        if (count = 3600) then
          count     <= 0;
          alarming  <= '0';
          alarm_en  <= '0';
          alarm_cnt <= 0;
        elsif (count > 0) then
          alarm_en <= '1';
        end if;
      end if;

      if (alarm_en = '1') then
        if (alarm_cnt < 600) then
          alarm_cnt <= alarm_cnt + 1;
        else
          alarm_cnt <= 0;
          alarming  <= '1';
        end if;
      end if;
    end if;
  end process;

  -- Assign the alarm output
  alarm <= alarming;
end architecture Behavioral; ```


This is Testbench:

```library ieee;
use ieee.std_logic_1164.all;

entity tb_Kitchen_Timer is
end tb_Kitchen_Timer;

architecture tb of tb_Kitchen_Timer is

    component Kitchen_Timer
        port (clk   : in std_logic;
              reset : in std_logic;
              start : in std_logic;
              stop  : in std_logic;
              alarm : out std_logic);
    end component;

    signal clk   : std_logic;
    signal reset : std_logic;
    signal start : std_logic;
    signal stop  : std_logic;
    signal alarm : std_logic;

    constant TbPeriod : time := 1000 ns; -- EDIT Put right period here
    signal TbClock : std_logic := '0';
    signal TbSimEnded : std_logic := '0';

begin

    dut : Kitchen_Timer
    port map (clk   => clk,
              reset => reset,
              start => start,
              stop  => stop,
              alarm => alarm);

    -- Clock generation
    TbClock <= not TbClock after TbPeriod/2 when TbSimEnded /= '1' else '0';

    -- EDIT: Check that clk is really your main clock signal
    clk <= TbClock;

    stimuli : process
    begin
        -- EDIT Adapt initialization as needed
        start <= '0';
        stop <= '0';

        -- Reset generation
        -- EDIT: Check that reset is really your reset signal
        reset <= '1';
        wait for 100 ns;
        reset <= '0';
        wait for 100 ns;

        -- EDIT Add stimuli here
        wait for 100 * TbPeriod;

        -- Stop the clock and hence terminate the simulation
        TbSimEnded <= '1';
        wait;
    end process;

end tb;

-- Configuration block below is required by some simulators. Usually no need to edit.

configuration cfg_tb_Kitchen_Timer of tb_Kitchen_Timer is
    for tb
    end for;
end cfg_tb_Kitchen_Timer;```

 #science

dejo,

@T4V0 Thanks for the answer, but I think I didn't understand you very well, can you send me the code with the modifications so that I know what exactly you mean?
Thank you very much, in advance

T4V0,
@T4V0@kbin.social avatar

@dejo

can you send me the code with the modifications so that I know what exactly you mean?

I would rather not, as it isn't a good learning experience for you, and would require some time for me to write the code.

Though if you have any questions about my previous answer, feel free to ask me about it.

As a freebie for you, pay attention to the alarming signal, and the condition that has been set: "The device should have buttons/switches to start and stop the timer, as well as to set the desired time interval for the alarm.". If I wanted the alarm to ring after 50 minutes, how would I do that? And what happens when the timer starts?

From the code I see here, the alarm is going to ring 10 minutes after being started, and it won't stop until an hour passes. And it has no way to set a time for it to ring, it always rings after 10 minutes.

And, not only that, the start signal is never set in the testbench, so the timer is never going to begin.

fatimaabdallah, to fedia
@fatimaabdallah@fedia.io avatar

Hispanics to voice their support for our President Donald J. Trump

https://www.facebook.com/groups/1768982929914959/

#fedia

SatansMaggotyCumFart,

our President

kn33,

BUZZER

WRONG

sorry, that’s incorrect. Trump is not president. Please try again.

ihavenopeopleskills, to fediverse
@ihavenopeopleskills@kbin.social avatar

Reddit is broken right now

#fediverse

Oka,

Lemmy breaks when you sn$&÷;#'ifbdgide×]×$ [Unable to load content, please try again later.]

lemmyreader,

FWIW.They fixed the error.The old Reddit site was still up. Fediverse is the future! :)

simplenomad, to random
@simplenomad@rigor-mortis.nmrc.org avatar

Hmmm, every server I'm getting spam from has a new user in their public directory named yqqwe, and each one of these users is following mastodon_admin_yggwe on a single-user instance mastodon.tinynews.org. One can look at the 924 followers of this admin and they all are named yqqwe and they are all on servers I've been getting #spam from. #fediverse #moderation #administration

simplenomad,
@simplenomad@rigor-mortis.nmrc.org avatar

I've found a few of these servers do NOT have the yqqwe account on them, these tend to be more active servers with admins moderating/removing spammers. Good!

vees,
@vees@epistolary.org avatar

@simplenomad TIL that yqqwe is a Mastodon hobo sign for "open sign-ins". I had one that last logged in today. Deleted.

yqqwe
yq19820430@gmail.com
23.95.14.239 (ColoCrossing)

#MastoAdmin #Spam

raymondpert, to random
@raymondpert@mstdn.social avatar
masterdon1312,
@masterdon1312@mastodon.social avatar

@raymondpert I assumed it was already happening with some of the accounts that have odd numbers that look like they come from another social network.

raymondpert,
@raymondpert@mstdn.social avatar

@masterdon1312

I recently had a chat with someone on kbin, or lemmy who pointed out to me that Mastodon posts go all over the Fedirverse.

I'd love to see more interpolarabilty among social networks.

You can look up your own profile, or someone you follow, on kbin/lemmy and see the posts presented differently... in magazine format etc.

Try it. No need to sign up tp look around.

https://fedia.io and many more.

ben, to random
@ben@hardill.me.uk avatar

Wondering how hard it would be to build the absolute minimum single user ActivePub instance.

#ActivityPub

tobyjaffey,
@tobyjaffey@mastodon.me.uk avatar
smallcircles,
@smallcircles@social.coop avatar

@tobyjaffey @ben

Also have a look at #Seppo, who have a dead-simple installation by dropping 1 file at a shared hosting provider. Very cool, and funded by #NLnet.

https://seppo.social

I maintain the delightful-fediverse-apps list, which has a bunch of other candidates to have a peek at:

https://delightful.club/delightful-fediverse-apps

peertube, to random
@peertube@framapiaf.org avatar

We are in the process of developing a mobile application in 2024 🎉 :peertube:

Before starting the technical development, we felt it was important to understand the expectations of people who are watching #PeerTube videos.

We're looking for a few people to take part in a short 30 minutes video conference during the week of 15-19 January to find out more about your needs and opinions regarding the adaptation of PeerTube as a mobile application.

Send us a direct message if you're interested!

kai,
@kai@ajin.la avatar

@peertube my wish is that the app will also run on Android TV 🙏🏼

box464,
@box464@mastodon.social avatar

@peertube @Mrfunkedude @vkc check this out, I'm sure they would love to hear from creators on what you would like to see from a mobile app.

rolle, to random
@rolle@mementomori.social avatar

My experience so far with microblogging services:

Threads: I'm in a wrong party and don't know what to say. I feel awkward, everyone is so happy with their gym selfies. Everyone asking endless questions and asking things from the algorithm. Lots of people use it like Instagram, every post is a selfie with a meaningless caption. Some are copy-pasting the same sentence over and over again for each line. Endless quote-post memes... What the fuck is this shit I don't even...

Bluesky: A Twitter clone, but still very barebones. Notifications are still not working, there are no hashtags and I don't find any relevant content to me in any of the feeds. It's mostly Facebook-like what's up in life, furry scene and AI photos. No news, no tech/web scene, no nothing. Not to mention it's still invite-only and won't support ActivityPub (yeah I know the reasoning behind that but for me it's mostly bullshit, I look forward to trying bridgy fed).

Mastodon and the Fediverse: Here I'm at home on my own server. Most content, most features. A community is friendly but has also lots of nitpicking, some angry dudes. Still the most safest, most healthy and most customized, but somehow the most hated network elsewhere. "Too techie", they say. "Too difficult", they say. "No algorithm", they say.

Nostr: Kinda promising, but way too obscure, strange and even techier than Mastodon. Too much crypto shit.

Well, that's that. Sometimes I feel like Internet is ruined. But I believe in the open social web movement and I want to see this grow.

In no other place I can write a status update as freely as this, as long as this or with a low bar as this. I LIKE this 100%. The same can't be said in those other places I'm experimenting with out of curiosity. There I'm the weird kid. Here I feel like myself.

stalbaum,
@stalbaum@mastodon.social avatar

@rolle feeling you on the ruins. At the very least we can celebrate some level of disaggregation. Thanks for doing this research!

wjmaggos,
@wjmaggos@liberal.city avatar

@rolle

I'd argue that we're stuck cause we're buying into their framing. decentralized social media is a technology, not a corporate platform. email is the best comparison. if you could only email with other Gmail accounts but Gmail was huge with lots of nice features, many would be happy with that. Same with Outlook. But when we explain it obviously shouldn't work that way, they'd have no argument. We're clunky like email was at first, but we'll obviously get better with more user adoption.

thenexusofprivacy, to random
@thenexusofprivacy@infosec.exchange avatar

Strategies for the free fediverses

https://privacy.thenexus.today/strategies-for-the-free-fediverses/

The fediverse is evolving into different regions

  • "Meta's fediverses", federating with Meta to allow communications, potentially using services from Meta such as automated moderation or ad targeting, and potentially harvesting data on Meta's behalf.

  • "free fediverses" that reject Meta – and surveillance capitalism more generally

The free fediverses have a lot of advantages over Meta and Meta's fediverses, some of which will be very hard to counter, and clearly have enough critical mass that they'll be just fine.

Here's a set of strategies for the free fediverses to provide a viable alternative to surveillance capitalism. They build on the strengths of today's fediverse at its best – including natural advantages the free fediverses have that Threads and Meta's fediverses will having a very hard time countering – but also are hopefully candid about weaknesses that need to be addressed. It's a long list, so I'll be spreading out over multiple posts; this post currently goes into detail on the first two.

  • Opposition to Meta and surveillance capitalism is an appealing position. Highlight it!

  • Focus on consent (including consent-based federation), privacy, and safety

  • Emphasize "networked communities"

  • Support concentric federations of instances and communities

  • Consider "transitively defederating" Meta's fediverses (as well as defederating Threads)

  • Consider working with people and instances in Meta's fediverses (and Bluesky, Dreamwidth, and other social networks) whose goals and values align with the free fediverses'

  • Build a sustainable ecosystem

  • Prepare for Meta's (and their allies') attempts to paint the free fediverses in a bad light

  • Reduce the dependency on Mastodon

  • Prioritize accessibility, which is a huge opportunity

  • Commit to anti-fascist, anti-racist, anti-colonial, and pro-LGBTQIA2S+ principles, policies, practices, and norms for the free fediverses

  • Organize!

#fediverse #freefediverse #threads @fediverse @fediversenews

Crell,
@Crell@phpc.social avatar

@thenexusofprivacy @fediverse @fediversenews Simply blocking Threads won't actually accomplish anything, except leave people stuck on Threads. If we want to actually help people, we need to take active actions beyond boycotts. We need to bleed users off of Threads, and we cannot do that if we block them outright.

https://peakd.com/mastodon/@crell/tangled-threads

sour, (edited )
@sour@kbin.social avatar

@Crell

no cooperating with north korea

dansup, to random
@dansup@mastodon.social avatar

Merry Christmas! 🎄

You can now explore popular #fediverse accounts on FediDB ⬇️

https://fedidb.org/popular-fediverse-accounts

Gargron,
@Gargron@mastodon.social avatar

@dansup Nice!

weirdmustard,
@weirdmustard@toot.community avatar

@dansup Wished we could sort them after "last active", too, bcs some of the big accounts - of course - left again right after creating their accounts in 2022.

tomasekeli, to random

there sure are a lot of conspiracy-nuts on #peertube.

vmatt,
@vmatt@fosstodon.org avatar

@tomasekeli So true. It's the main reason I struggle to get in to it (as a viewer, never record anything myself). If you find any nuts-free instances I'd love to see 'em!

Mrfunkedude,
@Mrfunkedude@mastodon.social avatar
rolle, to random
@rolle@mementomori.social avatar

Over the past year these are the top arguments against the Fediverse:

  1. Too left wing
  2. Too difficult
  3. Not enough people
  4. Not enough mutuals
  5. Too nerdy / too niche
  6. Too confusing
  7. Too ugly
  8. Too many different options and apps
  9. Too many servers
  10. Not owned by a corporation (yes, really, one person told me he prefers an oligarch)
  11. There is no algorithm
  12. Hard to discover people

Many of these are based on the attitude and feeling, but there is some truth to it, for example discoverability is still a bit of an issue. I personally find most of the Fediverse web UIs clunky considering the big world standards, but I’m sure they will get better over time.

#Fediverse #Mastodon

tothedaring,
@tothedaring@kolektiva.social avatar

@rolle i think this crusade that so many on here have joined is a fruitless one. i think if we all just chilled out on here, ppl would start showing up. like, part of the issue of the fediverse is that half of the convos on here are about the fediverse or how we get more people to join.

if 30 ppl were all standing outside of a bar shouting about how great it is in there, would any of us believe them?

sour,
@sour@kbin.social avatar

@rolle

what wrong with left wing

peertube, to random
@peertube@framapiaf.org avatar

We tried to simulate 1000 viewers on a #PeerTube video, and then on a livestream. (Note that 99% of twitch livestreams are under 1000 simultaneous views.)

We optimized accordingly... And here are the results: it works!

With a ~20$ server, PeerTube can now support such usecases.

Read all about these stress tests on our blog : https://joinpeertube.org/news/stress-test-2023

shalien,
@shalien@projetretro.io avatar

@peertube ... I am this close to actually try to setup a peertube server now .

pragmakist,
@pragmakist@kbin.social avatar

@shalien

@peertube

What can I say?

I found that part to be surprisingly easy; so if you do hit a snag reach out.

danyork, to random
@danyork@mastodon.social avatar

Advocates for #ActivityPub - IF YOU HAVE A #WORDPRESS SITE, have you installed the ActivityPub plugin? https://wordpress.org/plugins/activitypub/

At the State of the Word address this week, Matt Mullenweg was asked about support for the plugin, and he commented that less than 5,000 sites had installed it. So he wasn't sure how interested people are in it.

So... if you have a WP site, let's start installing that plugin and making more sites available via ActivityPub! 😀

#StateOfTheWord #SotW

warrows,

@danyork was he talking about plugins enabled on all WordPress installs or on wordpress.com?

danyork,
@danyork@mastodon.social avatar

@warrows He was talking about installations of the plugin in WordPress installs. When you install from the central plugin repository, they gather a count of how many sites have installed a plugin. And that number shows on the plugin page, and can help give people considering a plugin a sense of how actively the plugin is used.

Right now it says:

Active Installations: 4000+

ernest, to kbinMeta
@ernest@kbin.social avatar

@testing Can you repeat your tests regarding tags between kbin and other instances? It should be significantly better ;)

#kbinMeta

testing,
@testing@kbin.social avatar

@ernest
thank you! tags from kbin do federate on microblogging fedi - kbin users should use the the tags section rather than the text body though

  1. i also had a look at friendica; sadly, friendica seems not to be capable to pick up tagged posts from kbin > see e.g. https://friendica.opensocial.space/search?tag=kbin > tried my luck at several friendica instances, and every time: no content from kbin
  2. tags in kbin threads do not display on kbin pwa, e.g. https://kbin.social/m/kbinDevlog/t/692551 > on microblogging fedi platforms, i can see three tags: kbin, fediverse, and kbinDevlog for the magazine > with kbin pwa, neither kbin nor fediverse show up
ernest,
@ernest@kbin.social avatar

@testing Thanks for the summary. I will check those cases.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • meta
  • Macbeth
  • All magazines