i got only one error please any one help me to res...
# openlane
a
i got only one error please any one help me to resolve it. How to assign the Input pins to the caravel ? can any one guide me it is little Urgent (Simple and gate )
h
Is this homework? Openlane is complaining because you are assigning to an input wire in the line
assign io_in={a,b};
. In the module
user_proj_and_gate
, the bus
io_in
is an input from the outside and you are passing
a
and
b
to the submodule
and_gate
. You might want to do the assignment the other way round. You also have a typo in some of your variable names, and the assignments probably don't do what you expect as the bit widths don't match:
io_in
is 3 bits but
{a,b}
is 2 bits, also
io_out
is 3 bits but
y
is 1 bit. Finally you might want to change the value of
io_oeb
to something different.
a
not resolved yet.
@htamas Please guide me
m
as @htamas said, io_in is an input, you can't assign to an input, you can only read from it
a
IN caravel device i want to send the a,b input through io pad means how to assign those things ? @Matt Venn. or else what i have to do with that 2 inputs of my and gate logic . please guide me @htamas
m
I think what you want to do is assign a from one of the inputs. So it will be more like assign a = io_in, not io_in = a. The order matter
also, no need to keep tagging htamas, they will get notifications from this thread
h
Here are a few short videos explaining the important concepts here: Hierarchical Design

https://www.youtube.com/watch?v=Q0mK7uOTfSs

Continuous Assignment

https://www.youtube.com/watch?v=qtwggH9eUNc

Concatenation

https://www.youtube.com/watch?v=s-X0hMH2uu0

General Purpose I/O

https://www.youtube.com/watch?v=Yuf4JeaZkd0&list=PLmxJ7z2bemWphAKn0nZsVdWAm9SIewjIv&index=4