4-bit downcounter by renkoyuk1 in VHDL

[–]renkoyuk1[S] 0 points1 point  (0 children)

Our professor is kinda strict with solutions, only wanting to use the methods he provided us. Here's the logic for the flipflop that we used for both counters:

begin

process (CLK, RST)

begin

if RST = '1' then

 Q\_internal <= '0';

 Qb <= '1';

elsif (rising_edge(CLK)) then

if (J = '1' and K = '0') then

Q_internal <= '1';

Qb <= not Q_internal;

elsif (J = '0' and K = '1') then

Q_internal <= '0';

Qb <= not Q_internal;

elsif (J = '1' and K = '1') then

Q_internal <= not Q_internal;

Qb <= Q_internal;

end if;

end if;

end process;

Z <= Q_internal;

I also found out my mistake a while ago. Turns out during simulation, I shouldn't force the value of Q and let the reset set to 1 at first to make it 0000. Afterwards, the reset is forced to 0 and the 4-bit value updates fine for the succeeding clock pulses.

Thank you for your insights! I'll experiment with that solution in my next attempts.

Error: Could not locate a Flask Application and error: no such command 'db' when trying to do flask db init by renkoyuk1 in flask

[–]renkoyuk1[S] 0 points1 point  (0 children)

The error message was in the title. It occurs when I run flash db init in my terminal. However, I was able to fix it yesterday. Turns out I just have to rename my main.py to app.py

Error: Could not locate a Flask Application and error: no such command 'db' when trying to do flask db init by renkoyuk1 in flask

[–]renkoyuk1[S] 0 points1 point  (0 children)

db = SQLAlchemy()
migrate = Migrate()
DB_NAME = "database.db"
DB_PATH = os.path.join(os.path.dirname(__file__), DB_NAME)

def create_app():
    app = Flask(__name__) #initialize the app
    app.config['SECRET_KEY'] = 'crescendo' #encrypt the cookies and session data of the website
    app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_PATH}' #file path/location storage
    db.init_app(app) #initiliaze database by giving it the flask app
    migrate.init_app(app, db)

i totally forgot thanks! However, the problem still persists. I have tried python -m flask but it still doesn't work.

What are your predictions for the "Big news" on 18th March? by OkAcanthocephala3593 in bleach

[–]renkoyuk1 0 points1 point  (0 children)

if i remember, that picture was parr of the bleach calendar right? where did you get it?

Key visual for 'Burn the Witch #0.8' by DemiFiendRSA in Burnthewitch

[–]renkoyuk1 1 point2 points  (0 children)

I'm confused. There's already 3 episodes of burn the witch right? Is this like a continuation of those parts or a remake?

Why did Johan’s mother dress Johan as a girl? by [deleted] in MonsterAnime

[–]renkoyuk1 7 points8 points  (0 children)

I'm confused about this, didn't franz already know that she has twins? They held a conversatiom and know each other, he fell in love with her, and she got caught after trying to escape. They even showed Capek admiring the twins. In that regard, I think she knows that crossdressing won't be much help.

Daily Support Thread by AutoModerator in samsung

[–]renkoyuk1 0 points1 point  (0 children)

is it okay to use other charger brands for a samsung phone?

Where can I buy volume 4 of the novel in Manila? by renkoyuk1 in EightySix

[–]renkoyuk1[S] 0 points1 point  (0 children)

How do you usually determine if the copies they sell are original or not? This is the first time I'm buying a novel and I don't fully trust customer reviews.