EmbDev.net

Forum: FPGA, VHDL & Verilog Vhdl project: mini-router


von Lucy (Guest)


Attached files:

Rate this post
useful
not useful
I have a project about a mini router, I wrote the source code and the 
testbech and it seems to work, but I'm not sure everything is correct 
because I'm new in vhdl codes. Could someone please check it? I ll share 
my codes and the test of the project.

von Dr. Emmett L. Brown (Guest)


Rate this post
useful
not useful
For debug/verifying purposes, it woulde be fine to have an additional 
output whichs tells the sourceport (Link1 or link2) of the routed data.

von Luciana (luciana)


Rate this post
useful
not useful
Dr. Emmett L. Brown wrote:
> For debug/verifying purposes, it woulde be fine to have an additional
> output whichs tells the sourceport (Link1 or link2) of the routed data.

1:So you think my work is ok, right? You are just suggesting me how to 
improve it?
2: Should I add the 2 output ports to the entity of the mini router?

von Dr. Emmett L. Brown (Guest)


Rate this post
useful
not useful
Luciana wrote:
> Dr. Emmett L. Brown wrote:
>> For debug/verifying purposes, it woulde be fine to have an additional
>> output whichs tells the sourceport (Link1 or link2) of the routed data.
>
> 1:So you think my work is ok, right? You are just suggesting me how to
> improve it?

No, not to improve it, just to make it test-able.
See Design for test: https://en.wikipedia.org/wiki/Design_for_testing

Test coverage is also important, and have a look to UVVM: 
https://emlogic.no/uvvm/

von vancouver (Guest)


Rate this post
useful
not useful
use IEEE.std_logic_unsigned.all;
use IEEE.numeric_std.all;

Never use both of them. Numeric is suffcient.

Besides that, I don't see any problems (assuming to simulation results 
are correct). But get used to write source code comments in english, so 
everybody can understand them :-)

von Luciana (luciana)


Rate this post
useful
not useful
thank you very much

von Broccoliliving B. (Company: word wipe) (broccoliliving)


Rate this post
useful
not useful
Dr. Emmett L. Brown wrote:
> Luciana wrote:
>> Dr. Emmett L. Brown wrote:
>>> For debug/verifying purposes, it woulde be fine to have an additional
>>> output whichs tells the sourceport (Link1 or link2) of the routed data.
>>
>> 1:So you think my work is ok, right? You are just suggesting me how to
>> improve it?
>
> No, not to improve it, just to make it test-able.
> See Design for test: https://en.wikipedia.org/wiki/Design_for_testing 
https://drivemad.io/home
>
> Test coverage is also important, and have a look to UVVM:
> https://emlogic.no/uvvm/

I agree with you, it is best to choose one or the other and never 
combine them. The use of numbers is adequate.

von Cat B. (catbosy)


Rate this post
useful
not useful
It's great that you've completed your mini-router project in VHDL. If 
you're new to VHDL, it's understandable to have some doubts about your 
code.

von Cat B. (catbosy)


Rate this post
useful
not useful
I recommend asking for feedback on forums dedicated to VHDL or digital 
design. There, experienced users can review your code and testbench to 
ensure everything is correct.
If you need help accessing your Airtel router settings for any reason, 
you can refer to this guide at 
https://routerctrl.com/airtel-router-login/. It provides step-by-step 
instructions on how to log in and make changes to your router settings. 
Good luck with your project!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.