nand2tetris Questions
2
Solved
How does one use arrays (representing busses) in HDL?
For example, I have the following code:
/**
* 16-bit bitwise And:
* for i = 0..15: out[i] = (a[i] and b[i])
*/
CHIP And16 {
IN a[16], b[...
Waterborne asked 21/12, 2016 at 5:0
1
Solved
I am doing a parser for nand2tetris project. I want to check if the destination field is either M|D|MD|A|AM|AD|AMD and their different ways of combinations like MA not only AM.
^(M|D|MD|A|AM|AD|A...
Rollmop asked 7/3, 2020 at 7:9
2
i'm not too sure why my Nand2tetris simulator keep telling me line 3 error.
can anyone tell me any problem with the following code:
CHIP Xor {
IN a, b;
OUT out;
PARTS:
Not(in=a, out=not...
Kasher asked 25/5, 2015 at 16:8
2
It's seemingly close to working, it just is messing up at line 7 apparently?
/**
* 4-way demultiplexor.
* {a,b,c,d} = {in,0,0,0} if sel==00
* {0,in,0,0} if sel==01
* {0,0,in,0} if sel==10
* {...
Eldridgeeldritch asked 23/1, 2013 at 19:43
5
Solved
So I'm working on the nand2tetris project, and I want to implement shift right logical on a software level since the hardware doesn't support it.
I know shift right logical is a division by two. S...
Greenhead asked 11/2, 2014 at 2:56
2
Solved
I am reading and studying The Elements of Computing Systems but I am stuck at one point. Sample chapter skip the next 5 instruction s can be found here.
Anyway, I am trying to implement a Virtual...
Bornite asked 10/5, 2015 at 17:51
7
Solved
Is it possible to write logic using only the AND, OR, and NOT operators to compare 2 operands and return true/false (-1, 0) without the use of jumps?
If so, can you please give me some hints as it ...
Hermes asked 21/1, 2010 at 21:50
5
Solved
Although I tagged this homework, it is actually for a course which I am doing on my own for free. Anyway, the course is called "From Nand to Tetris" and I'm hoping someone here has seen or taken th...
Shepherd asked 23/2, 2009 at 1:3
1
© 2022 - 2024 — McMap. All rights reserved.